I'm trying to retrieve a feed of recommenders for a blog entry as described in the API documentation here:
http://www-0.lotus.com/ldd/appdevwiki.nsf/xpDocViewer.xsp?lookupName=IBM+Connections+4.0+API+Documentation#action=openDocument&res_title=Getting_a_list_of_recommenders_ic40a&content=pdcontent
Problem is, I always get a http 405: method not allowed. Is this a known problem? Am I doing anything wrong? To be more precise, I am dealing with entries of an ideation blog here. My request is authenticated with the owner of the community and ideation blog.
Answer is a composition of comments from Benny and I - https:///blogs//api/recommend/entries/ enable one to find the details of the blog votes.
Related
Since Foursquare encourage developers to post API issues on StackOverflow I wanted to ask: Is there a method for upvote or downvote a tip in Foursqaure API? I have checked the Foursqaure API docs but there aren't any new methods added for tips.
You can use the v2/tips/like API to like or unlike a tip.
If 1, like this tip. If 0 unlike (un-do a previous like) it. Default
value is 1.
https://developer.foursquare.com/docs/tips/like
UPDATE:
It looks like Foursquare.com uses an undocumented endpoint v2/tips/vote. You can see how this works by inspecting network traffic to Foursquare.com and upvoting or downvoting tips.
Upvote: https://api.foursquare.com/v2/tips/TIP_ID/vote?vote=1
Downvote: https://api.foursquare.com/v2/tips/TIP_ID/vote?vote=0
Remove vote: https://api.foursquare.com/v2/tips/TIP_ID/removevote
These all need to be POST requests and you'll of course need an oauth token for all of them.
I have a domain which have a feature to login with instagram a/c, registered users associate their instagram a/c using this process.
Now i want to store/save all post and comments of users they have posted on instagram a/c.
So that i can perform a search on comments and caption of posts.
As fas as my knowledge its not possible by using instagram api thats why i am saving info in my database.
Is there any simple way to perform search ?
Any help will be appreciated.
Thanks
Instagram only gives you 150 latest comments via API, so if you want to search through all comments, you have fetch comments at regular interval and save on server, searching these comments are straight forward, look for substring in the comment items saved. It is kind of tricky on deciding how often you want to check for comments and store, usually mosts comments are posted few minutes after a popular photo is posted. If you do the checks too often, you may reach the API rate limit.
https://api.instagram.com/v1/media/{media-id}/comments?access_token=ACCESS-TOKEN
If you are dealing with less than 150 comments on average, then you can search through it without needing to save on server and can be done all on client side. Just pull the comments using API and do search through the array of comments using javascript.
Picodash allows you to view the latest 150 comments and search any keyword or user, here is screenshot:
I have developed library in php: https://github.com/raiym/instagram-php-scraper
It allows you to get ALL comments from specific post (I have tested with 8 000 comments)
$comments = Instagram::getMediaCommentsByCode('BGY0zB4r7X2', 1500);
There is a POST method for to create comments, but it says the following:
Create a comment on a media. Please email apidevelopers[at]instagram.com for access.
See: http://instagram.com/developer/endpoints/comments/#
So do I have to get whitelisted for to be able to post comments or is the access_token enough?
Yes it is possible to post comments on Instagram via API. You have to get whitelisted now, so you have to email. This was not the case before, you were able to use commenting in api whithout whitelisting, but because of some apps spamming and abusing the comments feature, commenting now has to be whitelisted
See more: https://developers.facebook.com/docs/instagram-api/reference/media/comments#create
I am searching using https://graph.facebook.com/search?q=anglogold&type=post
this is not returning a post I made myself just now. Any idea why
https://graph.facebook.com/search?q=anglogold&type=post
returns a lot of posts for me.
Facebook can restrict results on search api on different scenarios.
Not suitable for a particular country/region
Not a public post
Person is blocked by user
and may be few others.
I'm writing a bot in node.js using node-xmpp. So far it's pretty straight forward except I'm having an issue with figuring out how google Talk handles it's user authorization (when dealing with requesting to chat with someone NOT on your roster).
I'm catching all stanzas coming through and logging them to the console but there is no data coming from the user that is requesting authorization.
Any explanations of what I should be looking for or if this event even happens over the jabber protocol.
[appended] I know that technically when a subscription request is made a presence stanza is sent with the subscription request. I can't see these coming over the wire using node-xmpp for some reason. Also, I need to find out a way to determine what presence requests are "pending" when my bot logs in. I thought (innacurrately) that they would be listed in the roster with some sort of flag, but that's not correct.
Any help with finding out where to go from here would be useful.
Ok, I finally figured out how to get the subscription requests after they have been made. There isn't much info on it out there so I'll put together a blog post, but I feel that answering it here might be good as well.
I found that if I did a google roster query based on the below information:
http://code.google.com/apis/talk/jep_extensions/roster_attributes.html
example stanza:
<iq from="username#gmail.com/D2D4E5A8" type="get" id="google-roster-1"><query xmlns="jabber:iq:roster" xmlns:gr="google:roster" gr:ext="2"/></iq>
The server would respond first with your pending server subscription "presence" stanzas
ex:
<presence type="subscribe" from="pendinguser#gmail.com" to="namehere#gmail.com/D2D4E5A8" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"/>
and then the rest of your roster's "presence" stanzas. It's important to note that your subscription "presence" stanzas don't get sent to you from the server unless you do a roster query. I'm not sure why this is and why it's not documented somewhere is beyond me. Anyways, at least I can get the list of people trying to get access to my bot now.
Note: This is not my area of knowledge just an interest of mine. I have not got practical experience just a bit of research. This would have been a comment however doing some more searching on the topic, I have come up with some more things that might help.
Here's a google chat chat room homepage http://partychapp.appspot.com/ you can get the source http://code.google.com/p/partychapp/
Those links came from http://xmpp.org/2010/02/xmpp-roundup-13-services/ which has quite a few other resources that might be helpful.
http://code.google.com/p/node-xmpp-bosh/ has some code about that, I've not done it but the topic is interesting.
I hope if you do find the answer your after you write up a blog post and or a project and share it. It would be of interest to me.