I'm using venue push api with venue i'm managing and it works as intended.
But we want to organize some sort of poll using "what are you up to?" text, is there a way to get this text in push api?
As per the real-time API docs, the text you're looking for (Foursquare calls them "shouts") is omitted from the Venue Push API for privacy reasons.
Related
I am trying to create like/comment feature for feed in my app. Does getstream provide any api/method to find total number of comment/like on a post? Or do we have to save this info in our database and have to send only notification to getstream server?
If possible, any example
Thanks
Currently like/comments (i.e. related activities) are not supported natively on the Getstream.io API. Thus you would have to store this information locally in your own database (as you pointed out). A feature which would allow native support for this is on the roadmap. If it fits your specific usecase you could also use the aggregated feed format to aggregate on post id and verb to get the amount of likes on a certain post.
is there a way to grab instagram users based on a specific hashtag ?
I run contests based on re posting photos with specified hashtag then randomly pick a winner, i need a tool that can grab the usernames of those who reposted that photo and used that hashtag.
You can query instagram using the API. There are official clients for both python and ruby.
You didn't specify what language/platform you are using, so I'll give you the generic approach.
Query instagram using the Tag Recent Media endpoint.
In the response, you will receive a user object that has the user's username, id, profile url, and so on. This should be enough to do what you are describing.
As far as tools, there aren't great options to probably do things exactly how you want. If you just want a simple contest, you could use statigram, but it's not free.
If you roll your own solution, I highly recommend you also do the following:
Implement a rate limiting mechanism such as a task queue so you don't exceed your API calls (5000 per hour for most calls). Also useful for failures/network hicups, etc.
Have users authenticate so you can use OAuth to extend your API calls to 5000/per user/hour to get around #1.
Try the subscribe API if there won't be many items. You can subscribe to a specific tag as well, and you will get a change notification. At that point though you need to retrieve the actual media item(s), and this can cost a lot of API calls depending on how frequent and what volume these changes occur.
If your users don't have much photos/relatively small/known in advance, you can actually query the user's recent media instead and filter in your own code by hash tag.
We integrate our service to 4sqr, this is done by our customer informing us of their venue-id from the 4sqr URL. However, if a venue is claimed and a twitter associated with the venue the url is switched to one with the twitter id.
so, one of two things after this twitter acct is in place for a venue:
1. how does one find the venue-id in your UI?
or
2. how does one query the venue details using the twitter handle?
thanks
Foursquare's /users/search should work (you're basically searching for a "venue user"). https://developer.foursquare.com/docs/explore#req=users/search%3Ftwitter%3Dwinkellyauto
Right now, when you check into a movie theater, you have the ability to check into a specific movie showing.
If you're a venue owner that has a schedule that people can check into, is there a foursquare api method that lets you upload your schedule? What do the movie theaters use?
This schedule you're referring too is called "events" on Foursquare. Foursquare is currently partnered with ESPN (sporting events), MovieTickets.com (Movie Times) & SongKick (concerts) for the data you're seeing. There is no way (currently) for you to create an event at a venue using the Foursquare api. However, it looks like this feature may be on its way based on the update at the end of this blog post.
http://blog.foursquare.com/2011/08/18/foursquare_events/
Not through the API, the current ability to edit a venue in FourSquare can be found at: https://developer.foursquare.com/docs/venues/edit
Events can be viewed through a venue using the API here: https://developer.foursquare.com/docs/venues/events
Once you manage a venue on FourSquare, you can maintain it through the Dashboard - found here:
https://foursquare.com/business/merchants/dashboard
Can I get events from Foursquare API or just places?
You can get events via the API, documented at https://developer.foursquare.com/. In particular these two endpoints are probably what you're looking for:
https://developer.foursquare.com/docs/venues/events
https://developer.foursquare.com/docs/events/events
Note that there are limits on what sort of events you'll be able to retrieve as noted in the description for /venues/events