First, I've create a app twitter and read the documentation that the rest api v1.0 will not supported(available) longer and the new one is v1.1
Then, I've develop a flash app that utilize twitter by retrieve user's profile and that profile will be the base for data comparison process.
How I can build a sign-in twitter mechanism so when the user succesfully sign-in the apps get the profile data and will do some comparison mechanism? Is ther any tutorial about this especially work around with twitter rest api v1.1?
And what about consumer key, consumer secret, Access token secret, Access token?
Sorry if ask a lot questions because some tutorial I found in internet not work properly.
So far I have only found the following library in github.com, but yet to decipher the usage of the library:
https://github.com/susisu/Twitter-for-AS3
Related
The documentation on TwitterOAuthAPI.com leaves quite a bit to be desired, to say the least. However, the software does appear to work with an elevated Twitter API Developer account, when used with the API Key and Secret, along with the Access Token and Secret (passed into the TwitterOAuth constructor).
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token, $access_token_secret);
However, with an Essentials account, there's only access to OAuth 2, which Twitter seems to provide a Client ID and Client secret for. If I try to use the Access Token and Access Secret with an Essential account (not elevated or academic), it returns a status saying that an elevated account or academic account is required to use the v1 API).
The developer of TwitterOAuthAPI only currently has an honorable mention of v2 Twitter API and a small code segment, that seems to suggest all we have to do is
$connection->setApiVersion('2');
But this does not work. $connection->get no longer retrieves data, $connection->post no longer posts status updates - just a blank page from what I can tell (no errors or anything, just blank).
So I'm very confused as to how the Client ID and secret are used with this system as I assume, an alternative to the Access Token and Access Token Secret (?).
If anyone knows how to use TwitterOAuthAPI for PHP with the v2 of Twitter API and a non-elevated/academic account, I'd appreciate any insight.
Thanks for your time,
~G
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 want to save the notification from specific user in friend list in mysql database using php and twitter api
Twitter has two main APIs. HTTP REST and Stream API so you could do that two ways but I think PHP is only suitable for HTTP API since PHP is not multithreaded.
With PHP and cURL extension you could periodically poll the HTTP Twitter API to look for changes on user you are following.
I would use the Stream API which already has a Java client implemented by Twitter staff that works like a charm and receives the updates in RT. For further details:
REST API:
https://dev.twitter.com/rest/public
Streaming API
https://dev.twitter.com/streaming/overview
Hosebird (Streaming client by Twitter)
https://github.com/twitter/hbc
Hope it helps
The Twitter Account Activity API appears to be the way to do this, now.
"The Account Activity API - All Activities (beta) delivers realtime access to all activities related to a Twitter account via webhooks."
https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/overview
Hi I wanna use klout api to get user's score of facebook or twitter. But I could not make a app like what I did when I am using facebook or twitter api. I have two keys: one is oauth key and one is partner key, what's the difference?? How do I make calls using klout apis? I tried here, but still could not make successfully calls, or even add a login button in my page, could someone help me and give me some sample code please, thanks!
Have you registered for an account and received API keys? A few points:
The OAuth API is moderated. Keys generated for it are not activated until approved. You would not be able to add a login button to your page until applying and being approved for a key.
The V2 API is more open, but still requires you to register at http://developer.klout.com/member/register
You cannot currently lookup Facebook users on the API due to Facebook's Platform Terms of Service.
The samples on the pages are generally incomplete in that they require you to include the key, have an active application profile, and have the callback URL set on that application profile.
I am building a web-app where I need to access list of spreadsheets from Google Docs (of Google Apps)
I want to authenticate using OAuth.
How can I do it in my PHP application?
One important thing, I want to authenticated on my user behalf. My application will run in background, and user will get email regarding list of spreadsheets associated with his/her account. I don't want a script that will need user to enter his/her email-id and password everytime script runs.
First, here is an overview of OAuth usage with Google:
http://www.google.com/support/a/bin/answer.py?answer=61017
Next, here is a more in-depth overview of OAuth usage with Google: http://code.google.com/apis/accounts/docs/GettingStarted.html
Next, here is a sample of how to do 2 legged OAuth with PHP:
http://gdatatips.blogspot.com/2008/11/2-legged-oauth-in-php.html
Finally, here is the Google Documents List API (that you will most likely need to use):
http://code.google.com/apis/documents/
Enjoy! (And remember to vote up if you liked this answer)