I am currently writing an application as the owner of a particular venue. I want to be able to programmatically reach out to a user who checks in to the location via the contact information associated with their Foursquare account (if they've chosen to make that information public).
我现在正在写一个申请,作为一个特定地点的所有者。我希望能够通过编程方式接触到通过与Foursquare帐户关联的联系人信息来检查位置的用户(如果他们选择将该信息公开)。
Based on the sample code provided with the Real-Time API, it doesn't look like contact information is returned here. Is there a way to crawl to the necessary info from the info returned via this endpoint?
基于实时API提供的样例代码,这里不显示联系人信息。是否有一种方法可以从通过这个端点返回的信息中抓取所需的信息?
1 个解决方案
#1
0
You generally ought to actually be able to get the email from the actual push API response. Inside the user
object should be a contact
object, and the email
field will be populated with their email. You can always also fall back to making a user details call to retrieve a user's contact info once you know their user ID.
实际上,您应该能够从实际的push API响应中获得电子邮件。在用户对象内部应该是一个contact对象,并且电子邮件字段将被他们的电子邮件填充。当你知道用户的用户ID后,你也可以通过调用用户详细信息来获取用户的联系信息。
However, please keep in mind our API platform policy when it comes to situations like this. From the policy: "You must not take any action that constitutes unauthorized or unsolicited advertising, junk or bulk e-mail."
但是,请记住我们的API平台策略,当涉及到这样的情况时。从政策上说:“你不能采取任何构成未经授权或未经许可的广告、垃圾邮件或大量电子邮件的行为。”
#1
0
You generally ought to actually be able to get the email from the actual push API response. Inside the user
object should be a contact
object, and the email
field will be populated with their email. You can always also fall back to making a user details call to retrieve a user's contact info once you know their user ID.
实际上,您应该能够从实际的push API响应中获得电子邮件。在用户对象内部应该是一个contact对象,并且电子邮件字段将被他们的电子邮件填充。当你知道用户的用户ID后,你也可以通过调用用户详细信息来获取用户的联系信息。
However, please keep in mind our API platform policy when it comes to situations like this. From the policy: "You must not take any action that constitutes unauthorized or unsolicited advertising, junk or bulk e-mail."
但是,请记住我们的API平台策略,当涉及到这样的情况时。从政策上说:“你不能采取任何构成未经授权或未经许可的广告、垃圾邮件或大量电子邮件的行为。”