Get all comments authored by a Google Plus user - google-plus

Google Plus API makes it possible to get all comments for an activity if you know the activity id:
https://developers.google.com/+/domains/posts/reading#getting_a_list_of_comments_on_a_specific_post
But in my case I don't know the activity ids. I just know the id of the user, that has written the comments.
How can I find all comments authored by the user?

The Google+ API does not have such a feature. You could try searching for the user's name but that would find a lot of false positives.

Related

Soundcloud API: Find track like date via API

I've tried searching through Stack overflow as well as the soundcloud API reference but couldn't find any answer. I'm trying to retrieve the date a user liked a song on Soundcloud. I tried two parts of the API:
- /users/{id}/favorites: This will return all tracks liked by the user, but no date when it was liked.
- /me/activities: This returns track reposts, comments and seemingly tracks that show up on the stream. Sadly there doesn't seem to be a type track-like, but maybe I'm doing something wrong here or need to pass additional parameters.
I'm having the user log into Soundcloud before utilizing the API.
Any chance someone knows if retrieving the track like date via the API is possible?
Thanks!
With the public API available right now, this is not possible.
You have to build it on your own and track the changes in a different, your own database.
Example call from the website when you lookup your likes, i dont know what you will see with a pro account:
https://api-v2.soundcloud.com/users/soundcloud:users:1672444/stats/timeseries/likes?from=1442016000000&to=1442534400000&resolution=day&tracks=soundcloud%3Atracks%3A30984358&client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea&app_version=39e9f65
Response:
[{"user_urn":"soundcloud:users:1672444","timeseries":[{"time":1442016000000,"count":1},{"time":1442534400000,"count":1}]},{"user_urn":"soundcloud:users:1672444","track_urn":"soundcloud:tracks:30984358","timeseries":[{"time":1442016000000,"count":1},{"time":1442534400000,"count":1}]}]
Here is and older, related answer about playback stats:
How to fetch playback statistics

How to retrieve recents video's comments for a Dailymotion account

I am asking me if it's possible to retrieve recents video's comments for a given Dailymotion account.
For example, i want to get all recents video's comments for a given account every 2 minuts.
I have found severals Dailymotion API but don't found thet way to to that.
I tknow it's possible to read the list of a video‘s comments by issuing an HTTP GET to /video/{VIDEO_ID}/comments but do you know if it's possible to reteive all new comments for account's videos?
Thanks!
https://api.dailymotion.com/video/videoID/comments
will give you
{"page":1,"limit":10,"explicit":false,"has_more":false,"list":[{"id":"id","message":"wel done","owner":"id"},{"id":"id","message":"congrats","owner":"id"}]}
So, list has comments of video.Here there are 2 comments.

SoundCloud API getting tracks favorites

Is it possible to know, who and when likes your track through SoundCloud API?
I can see this list on http://soundcloud.com/%usernick%/%track-name%/stats/who/favorites?from_date=2012-01-01&to_date=2012-06-09
Days statistics of favorites i can see it http://soundcloud.com/%usernick%/%track-name%/stats/counts/favorites?from_date=2012-01-01&to_date=2012-06-09
But how i can get it through API?
I except this info on GET /tracks/%track_id%/favorites.json or GET /users/user_id/favorites/%track_id%.json, but it isn't working.
Note: This is feature only for paid user.
PS: Sorry for my bad english.
I found only one way -- through /my/activity/, but in this case i must to get all my activity of all tracks, comments and favorites.

Foursquare places

We would like to be able to pull out certain places from foursquare an categorize them on our website along with comments from foursquare users. I have the following questions:
1- Can we pull out places and categorize them the way we want on our website? e.g: restaurants/bar/lounge/club/landmarks/others.
2- can we pull out as well phone numbers (when available) and addresses (longitude-lattitude) of places ?
3- Does foursquare have any general descriptive summaries of each place?
Thanks for the help.
Chris
Foursquare has an API, more information can be found at this link
To answer your questions:
Yes, check out the Venues Platform in 4sq API, specifically, the search. When you query the API, as part of the result set for each venue, you get a category
If available, you will get them back under the 'contact' field, check out the response venue object from the search function
Yes, description field, you will need to make an API request to get the complete venue object.
Edit: one last thing, attribute and play nice :)
From my experience, you do not get a lot of venues with 'contact' and 'description' information. But foursquare is not very popular where I test my application, so it might be bad experience - experiment with it yourself.
FourSquare has a great category tree that you can use for categorizing restaurants
http://aboutfoursquare.com/foursquare-categories/
Actually, I'm using this tree in my website:
Dishes Map

No results for a specific user in Twitter search API

For some reason, when searching on one specific Twitter user, the search API return nothing. (ie http://search.twitter.com/search.atom?q=+from%3ATWITTERHANDLE_A) TWITTERHANDLE_A here is the Twitter account name. This user has been active for over a month, has had many RTs, #s and has sent such tweets out as well.
Meanwhile, I created a new Twitter account - we will call it TWITTERHANDLE_B. Immediately after I created the account, I sent 1 tweet and performed the same search as above (http://search.twitter.com/search.atom?q=+from%3ATWITTERHANDLE_B)
The tweet was returned.
Is there ANYWAY to find out if and/or why a particular user would be blocked from search results? Thanks so much for any help... I'm going crazy here. Twitter's documentation just says sometimes a user's tweets won't be searched!
The documentation you refer to has a link to this page:
http://support.twitter.com/forums/10713/entries/42646
The bottom entry addresses your issue, hopefully you can fix it that way.
Bear in mind the search API only grabs results from the last couple of weeks, so if the user hasn't tweeted in a while then there won't be any results.
You could try not using the Search API and grab the results directly:
http://twitter.com/statuses/user_timeline/-username-.json
Works fine for http requests at least... >_<