I have managed to acquire oAuth tokens (request_token, request_token_secret) from this example but I cant seem to post to user account with them.
I would imagine that i would have to first read from the user and get their blog name but i cant find any documentaion about this.
Can anyone lend a hand on what to do with the tokens please, thank you.
Acquiring the tokens will give you authentication but not authorization, you still need to authorize your application against the target Tumblr account. Check the OAuth workflow here:
http://hueniverse.com/2007/10/beginners-guide-to-oauth-part-ii-protocol-workflow/
Related
He there,
I am trying to get a grip on the API of linkedin. What i want to develop is a marketing-dashboard for clients with campagins and there analytics. The documentation on linkedin is not very helpfull (could be me thought). Do i have to be registered as a partner for this? And can anyone help me with some examplefiles or library based on PHP?
Unfortunately the Zoonman tutotial only shows the 'Authorization Code Flow'. For data of campagins and sponsered content on linkedin i need 'Client Credential Flow'. And as i suspected i do need to be partner first to be able to use the LinkedIn Marketing Developer Platform - API.
I have created a button that allows users to sign in with Google.
After the users choose their google accounts, I can get the following parameters as response from Google.
access tokens
id_token
expires_in
token_type
created
How can I use these parameters to use services provide from Google?
For example, can I create buttons for user to go to the gmail boxes?
If it is not the way, what are the uses of those token?
Using Google's tokens id you can get User's Information like Name Email.
You cant provide direct option to open Gmail. It will prompt user to login
You can refer this doc for more info Gmail scopes
For accessing Google services, you need the access_token. When you are creating the authentication URL, you must specify all scopes - permissions (from this list) you want to use in your application. Then Google will ask the user for consent with delegating those permissions to your application. The access token you get will allow you to perform those actions.
You can go through those Google API scopes and get an idea what you can do and what not. For example you cannot use the GMail GUI, but you can read, send, delete, and manage user's emails, send new emails and so.
Using Angeleyes excellent Permissions tutorial and code, I have managed a small developer site, that can get Access Token and Token Secret. From there Im clueless, Paypals' Github claims a CreateInvoice sample, which doesnt exsist, and much searching i have learned(?).
You need to include your app credentials, your API username and API password, and in an added "SUBJECT" line the ... payer_ID merchant/payer email...
(conflicting info exsists here) to run another API you have permission to execute.
None of this is very clear for me. All tutorials end with the access code and Token secret.
I am attempting to add a buy now button that sources the MERCHANT from DB (multi merchant) but am getting nowhere overcoming this conceptual gap.
How do i mesh Permissions API with ExpressCheckout API? (step by step if possible)
Edit:
Search continues also, how does one recover from the permissions granting api methord the merchant email for subject?!
PayPal updated their description DURING the grant permissions screen, to mention Pal Id access..
Now going to open a new question, to find out how to use a saved Permissions Token and Secret in php to USE the access token and token secret to get pal ID.
hope this helps someone else :)
I have a task to make people follow some account on twitter as soon as they fill a form on our website.
Can I do this using the twitter php api? Or just a redirect or iframe would do the job?
Thanks!
Joe
just need to read the api a bit,
http://dev.twitter.com/doc/post/friendships/create
You can't have a Twitter user automatically follow another account until they give permission. You have to take them through OAuth authentication first, and then when they give you permission to modify their account you can add a follow. But automatically adding a follow without getting their explicit permission, meaning that you explain you are going to do this first, will get your account banned from Twitter. It is a serious violation of their terms of service.
I need to retrieve the name, email and picture from a google account.
I am already using the openid to make the user login with it's google acc.
Can I have the picture URL from the openid proccess?
with OAuth I cant'seem to find the right scope to retrieve this information... See this link:
http://code.google.com/apis/gdata/docs/directory.html
there is a list of scopes that you can fetch with REST api to google and I didnt't see the one related to the profile.
Btw, I am using PHP and the openid is already working, but didn't start with the oauth untill I know if I can(and need) retrieve the picture (because email and name already comes within the openid proccess)
thanks,
Joe
It seems that you can retrieve the picture URL with the Google Contacts Data API : see http://code.google.com/intl/fr/apis/contacts/docs/3.0/developers_guide_protocol.html#retrieving_photo
Then you must authenticate your requests with OAuth. If you already use OpenID, you can now use the hybid protocol OpenId/OAuth : see http://code.google.com/intl/fr/apis/accounts/docs/OpenID.html#oauth