Any idea about how to post on our Google+ Stream using javascript or json?
I'm not searching how to use the google+ button, I need to post on the wall(or stream)
The (recently announced) Google+ API currently provides read-only access to public data. All API calls require either an OAuth 2.0 token or an API key.
Here's some information to help you get started.
http://googleplusplatform.blogspot.com/2011/09/getting-started-on-google-api.html
http://developers.google.com/+/
These two urls do what you want, but need a confirmation from the user:
https://m.google.com/app/plus/x/?v=compose&content=YOUR_TEXT
https://plus.google.com/share?url=YOUR_URL_HERE
No public API is available, so just register for the private API and check for yourself
https://services.google.com/fb/forms/plusdevelopers/
EDIT: The API is available now:
https://developers.google.com/+/
That's the downside of the Google Plus...
See here: http://code.google.com/p/google-plus-platform/issues/detail?id=41
Related
I want to use the twitter API function.
After the user authorization, it will automatically follow my account.
Authorization has been completed,but it cannot be tracked automatically.
I can't find the API file.
Which api file correspond to this function?
Thanks
You want statuses/home_timeline documented here: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline.html
I have managed to get an access token from the twitter api. Now I want to use that token for my further data fetching things, so please help me here to get the details of my twitter account.
For example, lets say I wanted to get the user's data, so when I tested this in apigee console, I got my result.
But how to get the same result, using same api, by hitting on a browser using the access token
something like this
Please help
It's a little more complex than the URL you suggested, but you can use Twitter's OAuth tool to generate the OAuth signature you need to make requests to its Home Timeline API call.
You can find the OAuth tool here:
https://dev.twitter.com/docs/api/1.1/get/statuses/home_timeline#oauth-tool
it's not like that when making twitter api calls you need to send consumer key, consumer secret, your_access_token and your_access_token_secret together
Eg: oauth_consumer_key="KEY",oauth_signature_method="HMAC-SHA1",oauth_timestamp="TIMESTAMP",oauth_nonce="NONCE",oauth_version="1.0",oauth_token="YOUR_TOKEN",oauth_signature="SIGN"
Source: https://twittercommunity.com/t/getting-the-user-details-using-access-token/6325/3
Have been searching high and low and cannot find any relevant answer on this. I was wondering if anyone has come across the Tumblr API v2 call that will let you access data from a private blog. I would like to post and retrieve listings from some of my private blogs while providing authentication of course.
Thank you
Using correct OAuth calls to the API, with an access Token for a private blog, it is possible to access at least some of that private blog's information with the Tumblr API v2.
Here are some observations I have made:
api.tumblr.com/v2/blog/{base-hostname}/posts
Normally you make this call with your Public API Key, and that allows you to access the posts of any Tumblr that is not private.
However! Good news: If you include the full OAuth headers when making this request, it will return the list of posts of a Private Tumblr account. You need an access Token for that Tumblr, of course, to do this. Yes, I have tried this, done this, and it works.
If you only use your consumer API key, e.g.
api.tumblr.com/v2/blog/{base-hostname}/posts?api_key=w8878374r384r...
Then you will get nothing. You have to make a fully-authenticated request with all of the proper OAuth parameters.
api.tumblr.com/v2/blog/{base-hostname}/info
Will not work at all for a private blog, even when using all the proper OAuth stuff to make the API call.
api.tumblr.com/v2/user/info
Normally this returns a list of "blogs" for the given authenticated user. However, any private tumblrs will not show up in this list of blogs.
Note:
I have not tested many of the other API calls with private blogs, so I cannot tell you for sure if creating/editing/removing posts works or not.
I have not tested this at all with xAuth, only regular OAuth and a standard access Token obtained through the "web authorization flow"
$conskey = "CONSUMER KEY";
$conssec = "CONSUMER SECRET";
$tumblr_blog = "myblog.tumblr.com";
$to_be_posted = "This is the text to be posted";
$oauth = new OAuth($conskey,$conssec);
$oauth->fetch("http://api.tumblr.com/v2/blog/".$tumblr_blog."/post", array('type'=>'text', 'body'=>$to_be_posted), OAUTH_HTTP_METHOD_POST);
$result = json_decode($oauth->getLastResponse());
if($result->meta->status == 200){
echo 'Success!';
}
Try the code above to post to your blog using API.
Hope that helps.
I am trying to use Flickr API via Objective-C. Can I get a user-related information like shared pictures just using login and password that user has used to register in Flickr? Or the user needs to get key/secret pair bound to a particular application?
I've seen some of the Flickr tutorials out there, but I believe you need an api token from Flickr to pull in the image feed.
Here is the tutorial I used, which also contains links to get your api key.
iPhone JSON Flickr Tutorial Pt 1
The framework 'ObjectiveFlickr' is by far the best tool for the job here:
https://github.com/lukhnos/objectiveflickr
I've used it in heaps of projects.
It'll manage all your API authentication and requests.
No, you can't just use a username and password to access private information. Yahoo/Flickr use OAuth which is a bit more involved. There are also a few open source Flickr API frameworks that should do a lot of the work for you. (I've not used any myself, hence the lack of a recommendation.)
The tool I'm developing would do a thing similar to when you join Facebook and they ask your GMail username and password and with it they can grab all your contacts.
But my tool doesn't use a browser, therefore it is difficult to get the proper headers. I assume that the Google application (Orkut) checks only my Cookies and Identity(ip, machine name, user-agent) as authentication method. In this case all I need is to get the proper cookies.
I tried to call https://www.google.com/accounts/ServiceLoginAuth?service=orkut with the parameters Passwd=realPasswordHere&Email=mymail#gmail.com . But the response was a similar HTML with Set-Cookie: GALX=A9iBuq7y5xU;Path=/accounts;Secure
None of these cookies are the real thing. Have you tried it yourself? Do you know how to do it? Have you ever seen an open source project that does it?
Consider using OAuth -- the URL I just gave details how to use OAuth to authorize the OpenSocial REST interface on Orkut, and this one has detailed specs on the RPC interface to OpenSocial, if that's what you prefer (the authorization part is basically the same, anyway).
If you are just looking for the contacts check out the provided API:
http://code.google.com/apis/contacts/
other google APIs
http://code.google.com/apis/gdata/
If you need source code to view how to do this you can check out the following project.
http://sourceforge.net/projects/gccontactman/
hope that helps, and good luck!
Perhaps you could check the source code of a Google tool that does this:
http://mail.google.com/mail/help/email_uploader.html