How to find the LIST_ID of user created list on Foursquare - api

If you look on this page https://foursquare.com/griekenlandnet you will see there are 55 tips in total, but there are also some user created lists. I can get everything at once through the api explorer on the foursquare site, but I would also like to be able to just get the content for 1 specific list.
According the docs at https://developer.foursquare.com/docs/lists/lists you can request them through this foursquare domain v2/lists/LIST_ID, the problem is that I can't find a way to get the LIST_ID.
Any tips on how to find the list_id? I can get the user_id, but not sure how that helps to get the list_id?
(I would have loved to include more urls, but not allowed to)

Once you have the userId, you can find the user's lists (and their IDs) via /users/USER_ID/lists

the matter is that you need to be authenticated to get results from /users/USER_ID/lists...

Related

DISQUS: Is it possible to get a particular user's posts in a given forum?

I am running a website, whose community is powered by Disqus. I would like to create user profile pages, where the page would display the particular user's most recent activity, but only for my particular site (forum, in Disqus' terminology).
I ran through the entire API documentation, but I could not find a way that would allow me to filter by both user, and forum. I would be able to grab either the entire list of posts for a given forum, or the one from a particular user.
In every API call, there is a mysterious query paramater, where I tried to plug a series of filters, but none of them worked.
Is there something that I could be missing?
It's not that obvious, but you can use the query param as a filter for users. Try something like this:
https://disqus.com/api/3.0/forums/listPosts.json?forum={SHORTNAME}&query=user:{USERNAME}&api_key={YOUR_API_KEY}

Display venue public photo on iOS app

My apologies if I'm not using the most technical terms in my question as I am asking on behalf of a development team who is creating an app for me, but we are having trouble making a call to the Foursquare API to get public photos (at least one) of specific venues.
Until now they have only been able to get low resolution photos and are telling me we need to be authenticated but I'm not sure they are explaining what they need to me correctly.
I have searched for hours and have not been able to understand how we would be able to obtain at least one photo for a given venue. The closest I have come to is getting a list of photos for a venue using the example query: https://api.foursquare.com/v2/venues/43695300f964a5208c291fe3/photos?oauth_token=...TOKEN...&v=20130529
This involves the OAuth_Token and I had understood we didn't need this to get an image of a venue using the API.
Once again, apologies if I'm using any terms incorrectly as I am not a programmer myself. Thanks.
That call to venues/VENUE_ID/photos is indeed a way to solve your problem: you can do that to get public photos for specific venues, where the specific venue is identified by VENUE_ID. You don't need an OAuth token; instead, you can simply pass in client_id and client_secret parameters. Examine the URL pattern we document under "Userless access" here: https://developer.foursquare.com/overview/auth#userless
Once you have these responses, you need to construct a photo URL, and this is where you can specify the desired size. For each photo response, you take prefix + size + suffix to construct a full URL. For an example, see https://developer.foursquare.com/docs/responses/photo

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

Get A Users Over All Retweet and Mention Counts using Twitter API

We are working on some analytics using the amount a user is retweeted or mentioned... I can't seem to find a way to get these numbers using the apis does anyone have any ideas?
https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name={screen_name}&count={count}
it's important to include the line include_entities=true to the request. This will give you an expanded response including re-tweet and mention counts.
Get Status / User Timeline
Twitter API Console
Update:
to get tweets from the last 90 days, there is a Node.js library you can use called Snapbird
https://github.com/remy/snapbird
.. and here is another resource covering the same topic.
http://blog.tweetsmarter.com/twitter-search/10-ways-and-20-features-for-searching-old-tweets/

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... >_<