I have an app where you can buy food on delivery restaurants.

Can I use the Foursquare API so the user can check-in on the restaurant that he order from? Probably the user will not be in the resutaurant it self when he checkin.

There is an special way to do this on the foursquare api?

thanks

有帮助吗?

解决方案

You can check-in any user that has authorized your application at a venue using the /checkins/add endpoint in the API. If you don't know the user's actual location (or fully expect them not to actually be there, but have a legitimate reason to be checking in, e.g. for delivery) be sure to leave the lat/lng parameter blank. The check-in will go through and be in the user's history, but won't count for badges/mayorships, etc.

其他提示

I'm not too sure what you're asking. I don't think you can check in to places if you're not even near them (or at least I wasn't able to when I last used the 4sq API).

Check this tutorial out if you need help getting started with the API, or read the 4sq api documentation.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top