I have gone through the documentation of google contacts API, but didn't get anything fruitfull for Image download.
Google contacts API
When I download the image, using 1 - 1 request, then some of the images are not getting download it is giving use Batch API for download
Does the batch API only support XML?
Yes, the batch API is XML-only.
Image download requests must be spaced to prevent throttling.
Related
I'm trying to upload a image to facebook via graph api v10.
i have followed the docs: https://developers.facebook.com/docs/graph-api/resumable-upload-api/
I'm getting the File-Handle as result, but i dont know how to append this File-handle to my Page post. Does anyone know what i can do with this File-Handle to attach it to a Post I'm automatically posting after the file upload was successful?
Thanks!
I´ve got the same problem. In the Facebook Graph API Documentation it says:
When we're done with uploading the data, you'll get a file handle:
{"h":"2:c2FtcGxlLm1wNA==:image/jpeg:GKAj0gAUCZmJ1voFADip2iIAAAAAbugbAAAA:e:1472075513:ARZ_3ybzrQqEaluMUdI"}
This value can be used in place of an uploaded file for subsequent
graph calls.
However, no examples or further explanations are provided on how to use the received file handler.
Sorry, It might be very novice problem but I am new to node and web apps and just have been stuck on this for couples of days.
I have been working with a API called "Face++" that requires user to upload images to detect faces. So basically users needed to upload images to my webapps backend and my backend would do an API request with that image. I somehow managed to upload the files at my node's backend using tutorial provided below but now I am struggling how to use those image files. I really don't know how to have access to those files. I thought writing just the filepath/filename would help but it did not. I am really new at webapps.
I used tutorial from here: https://coligo.io/building-ajax-file-uploader-with-node/
to upload my files at back-end.
thanks
You can also use the Face++ REST API node client
https://www.npmjs.com/package/faceppsdk
As per in documentation it requires a live URL on web. Then you have to upload your files into remote location (You may upload files to a Amazon S3 Bucket)
And also you check the sample codes from Documentation where you can upload directly to Face++
I was wondering if it's possible to use the Flickr API to get a batch of images (by doing a REST call and defining multiple tags), and providing a download button for the end user which allows him to download a zip file of the photos? I can get a list of all the image urls in JSON format, but not a whole batch.
I can't seem to find it in the Flickr documentation but was hoping someone could give me confirmation.
Thanks!
I am using #google-cloud/storage npm package for file upload from NodeJS. It is uploading file to google cloud bucket successfully.
Reference: https://github.com/GoogleCloudPlatform/google-cloud-node/tree/storage-1.1.0#cloud-storage-ga
But for larger files(size > 20 MB), I need to show upload progress status on browser(Client - Chrome, firefox, etc).
I am submitting AJAX request with file as formdata to REST API(written using NodeJS) and REST API uploads file to Google Cloud Storage buckets.
Note: I don't want to upload files directly from UI(Browser) to Google cloud storage.
But, I am not getting how to send back uploading file progress to UI from Google-Cloud-Storage via NodeJS REST API.
Would appreciate your suggestion or relevant references.
Use XMLHttpRequest to track your progress on NodeJS, using an eventlistener
Open a socket and transmit progress messages from your event listener and consume them on the client
References:
https://stackoverflow.com/a/30635818/4465100
http://blog.fossasia.org/file-upload-progress-in-a-node-app-using-socket-io/
I'm using the https://api.imgur.com/3/image to upload images from JavaScript without oauth.
Is it possible to see what images were uploaded recently using my Client-ID?
Unfortunately it's not directly possible but I think the following approach will give good results: use the following endpoint to retrieve all your associated images:
https://api.imgur.com/3/account/{username}/images
Or the following for account submitted images:
https://api.imgur.com/3/account/{username}/submissions/
For the Username you can use 'me' and you need to send the Client-ID using the correct header:
'Authorization: Client-ID YOUR_CLIENT_ID'
This will return all the images uploaded from the account and you need to filter them yourself.
If you are uploading them to a gallery and want to know only these you can set the time window in the request ( week, day, etc.)