I cannot get video upload to work with OAuth 2 access-token. The request always fails to even connect (timeout).
http://developers.facebook.com/docs/reference/rest/video.upload
With almost identical code, I have successfully uploaded photos.
The only video-upload example code I can find uses OAuth 1.x. Does video not yet support OAuth 2?
Thanks to all who read this.
AFAIK this is the case. New graph api still missing some of the functionality from old REST api. And that includes uploading video. You should be able to use REST api with access token to do things not yet supported by graph api.
Related
I am trying to connect to google photo in angular and been searching since last two days about google photos REST api but couldn't find any useful example.
Could somebody help me with this on how to use google photos api in angular. an example would be great if I get it working I will creating sample and put it on github or others to look at.
Another thing I am trying is to connect api without any user interaction. I have tried playgrounds but its prompting to authorize access as well. Idea is to build ionic app that can connect to my google photos without needing me to authenticate access to it with my id and secret.
my app would be in angular(ionic) or java(android) so would prefer example (if any) in those platform but ok with dotnet or php as well. Won't be able to use library in dotnet or php.
Thanks
Bhavesh
Currently, I am using the Token Authentication Flow to connect MS Graph OneDrive API to my application. (Link to documentation) It works, yet I have to use Postman to get a new authentication token after 30min-2h (I'm not sure about the exact timeframe). I need to be able to access the OneDrive API for a longer period of time (multiple months) without having to authenticate again and again.
In the documentation, the also speak about the Code Flow (Link to Documentation). Yet I don't receive a refresh token nor do I know how to set it up for longterm access.
I wrote an application in python that uploads files from OneDrive to another application.
Any help is appreciated!
Perhaps not a direct answer but it could help you arrive to solution via another route. In my case, I was following the process presented here, which really then lets user choose if they would like be remembered on the device. Then token gets stored and the method attempts silent authentication before requiring interactive login. So basically you get to use Graph API seamlessly.
Obviously, the authentication still needs to happen but perhaps you could reuse the token for direct requests?
Is Pinterest API still supported or they dropped the majority of the endpoints ?
The documentation from https://developers.pinterest.com/ lacks any information of OAuth authentication.
I've already checked the old versions of the API so please don't mark the question as duplicate:
How to Get OAuth Access Token for Pinterest?
pinterest api documentation
Many of the endpoints from v2 were removed in v3 and v2 now returns 404.
There's no way to actually generate access token and the trick with iPhone app access token doesn't seem to work anymore.
The tasks I'm looking to accomplish with their API:
authenticate users with OAuth
upload pics on their boards based on access token
Thanks
use below link
https://www.pinterest.com/oauth/?consumer_id=1431594&response_type=token
and see
pinterest api documentation
Here is a link to the new V3 documentation: https://developers.pinterest.com/docs/redoc/pinner_app
Assuming your app has been approved, the "User Authorization" section (https://developers.pinterest.com/docs/redoc/pinner_app/#section/User-Authorization) provides details on how to authenticate.
I'm working on a social RSS reader website, and with the news that Google Reader is shutting down, we'd like to capitalize on that by providing a feature for users to automatically import their Google Reader feeds in the same way that they might import contacts. I can't seem to find a good API for this.
The one solution I found, sending a request to http://www.google.com/reader/api/0/subscription/list, doesn't work, because we have to be authenticated to receive results. This means that either the user sends their google accounts password to us, obviously unacceptable, or we do the request client side. However, that API doesn't seem to support jsonp, and so we're unable to do a cross-site query.
Does anyone have any suggestions or links I've overlooked?
I am working on similar feature for my app, and i got the list of all the subscriptions (using the following URL) making a GET call with the access_token obtained via authenticating user using OAuth 2.0 for google reader API.
https://www.google.com/reader/api/0/subscription/list?output=json&access_token=USER_ACCESS_TOKEN
You can use OAuth so that users give you permission to execute that server side request on behalf of them.
If you are developing with Java you can use readr (a Google Reader client I have developed).
I'm using Java with Google Plus API. I'm using OAuth 2.0. When a user is authenticated, an access code is returned in a browser. Now, given that the code must accompany a call to the Google Plus API, I currently have to manually copy the code and use it in making calls to the Google Plus API. What I wish to do, however, is to programmatically retrieve this code; eliminate the manual copying.
Any assistance will be highly appreciated. Thanks in advance.
It sounds like you're writing a command line or some other non-web application that uses the Google+ API. This throws a little bit of a wrench into the token delivery via HTTP redirect. Without the redirect there's no way for the OAuth web pages to communicate with your code and hence you must copy and paste it.
There is one work around that seems to work pretty well. You can set up a local web server, such as an embedded Jetty, and complete the OAuth flow by redirecting the user back to their locally running web server.
You can see an example of this implemented in oacurl which is hosted here: http://code.google.com/p/oacurl/