I am making a patch call to upload video using tus approach. My video is getting uploaded to Vimeo but in the response of the patch request, I am not getting video ID.
Is there any way to get the video ID of the uploaded video?
The video id (or in Vimeo API terms, the video uri) is not returned on that tus PATCH request. Instead, look for the uri in the response to your initial POST /me/videos request.
See documentation here: https://developer.vimeo.com/api/upload/videos#resumable-approach-step-1
Related
Is there anyway to refresh the link of a video on instagram legally?
When I say legally I mean not via scraping but by following developer guidelines on https://developers.facebook.com/docs/graph-api ?
Suppose I was looking to get the following reel: https://www.instagram.com/reel/Cg3D38GBJwC/
I can get this raw video via the #NRL hashtag recent media which can be pulled with the following request:
17841564583099740/recent_media?fields=permalink,caption,media_type,media_url&limit=50
The video URL for this reel is:
https://video.cdninstagram.com/v/t50.33967-16/10000000_893382015382741_7795625665889045256_n.mp4?_nc_cat=104&vs=480915650532430_3376026638&_nc_vs=HBksFQAYJEdJQ1dtQURWOUt5MWhpd0RBQWdMUEhrOW9DOXNicV9FQUFBRhUAAsgBABUAGCRHSjJRdXhIa1cxMkd5RWNHQUM2WWRqa2xld1pRYnFfRUFBQUYVAgLIAQAoABgAGwGIB3VzZV9vaWwBMRUAACagzLv9gdHNPxUCKAJDMywXQHRVul41P30YEmRhc2hfYmFzZWxpbmVfMV92MREAdQAA&ccb=1-7&_nc_sid=59939d&efg=eyJ2ZW5jb2RlX3RhZyI6InZ0c192b2RfdXJsZ2VuLjcyMC5jbGlwcyJ9&_nc_ohc=p8ThcVQ1vOQAX8njt1u&_nc_ht=video.cdninstagram.com&edm=AEoDcc0EAAAA&oh=00_AT8IoyJDBQLTOX1hXpby3lCT6cIiIcxuDTJUXaWlrrcCZA&oe=62ECFBB6&_nc_rid=e2b1a3ee71
We can initially obtain this URL by using the /recent_media endpoint, but after a day or so it will expire as it has the expiry embedded in the oe parameter.
Is there anyway I can refresh the link of this video by making another request?
I am trying to send a PATCH request to the Vimeo API in order to start uploading the video based on the documentation.
I am using Postman. I've read {upload.upload_link} field, set the required headers but I still can't hit the API.
Does anyone know what could be the problem?
Try making that PATCH request again, but without the Authorization or Host headers, as they are not required for that upload endpoint:
https://developer.vimeo.com/api/upload/videos#resumable-approach-step-2
My requirement is that send an email to some recipient with text body using POSTMAN Native app,
I used the below endpoint with requested data,
Base URL: https://www.googleapis.com/gmail/v1/users/userId/messages/send
Headers :Authorization:Bearer
Request Method :POST
Request body :{"raw";"to:user1mail#gmail.com","subject":"Test_Mail"}
Clicking Send button
But getting error response code 400,required recipient address
Please help me in this to send an email using POSTMAN,and I've tried with upload end point too -https://www.googleapis.com/upload/gmail/v1/users/user1email#gmail.com/messages/send
Thanks in advance,looking for help guys
Came across your question trying to figure this out myself today.
Request body : {"raw";"to:user1mail#gmail.com","subject":"Test_Mail"}
The raw param should be a complete email message that's base64-encoded.
i.e.: {"raw": "VG86IHVzZXIxbWFpbEBnbWFpbC5jb20KU3ViamVjdDogVGVzdF9NYWls"}
400 error means bad request, which could mean there are missing or wrong parameters. Check the Users.messages.send
Path parameters
userId string The user's email address. The special value me can be
used to indicate the authenticated user.
Required query parameters
uploadType string The type of upload request to the /upload URI.
Acceptable values are:
media - Simple upload. Upload the media only, without any metadata.
multipart - Multipart upload. Upload both the media and its metadata, in a single request.
resumable - Resumable upload. Upload the file in a resumable fashion, using a series of at least two requests where the first
request includes the metadata.
i am having a desktop application. My requirement is to upload photo to facebook using graph api. I am able to post message to user wall via application. But i am not able to upload photo. i am getting an error "EXPECTS UPLOAD FILE" . i went through the documentation specified in the link
http://developers.facebook.com/blog/post/498/
I am using Winhttp for the connection. So how the file name will be specified? Whether the file name be specified in the URL itself?'
Please help me out
Specify the paraemeters message and source as multipart/form-data and send it with winhttpsendrequest
How to post an image to friend's facebook wall through graph api?If anybody suceed please send the web reuest or graph url.Here is my graph url.
https://graph.facebook.com/Pageid/feed?access_token=application_access_token&method=post&picture=http://www.Google.es/images/srpr/nav_logo39.png&message=logo
It is working fine ,image get posted on the page.But when I am trying to give url of image (that stored on my desktop)logic get fails.Here is it's url.
https://graph.facebook.com/Pageid/feed?access_token=application_access_token&method=post&picture=D:/foldername/Cimage.jpg&message=Waterfall.
I can't directly put all image that user upload to my server and then post to facebook.I wanted user to directly post an image to facebook wall not through my server (I don't want any image that hosted somewhere I wanted to use the image that get stored on harddisk.)