With deprecating /edit endpoint in favor of /proposeedit, what should I use for updating venue's storeId? It's seems that it's missing from parameters list.
https://developer.foursquare.com/docs/venues/proposeedit
https://developer.foursquare.com/docs/venues/edit
The endpoint should still accept this parameter if you're the venue manager as the storeId is designed for the manager of a venue (and is only visible to them). If you need help bulk updating storeIds for venues that you manage you should probably reach out to https://enterprise.foursquare.com/contact-us
Related
I cannot fetch Shopify product metafields using Prismic Integration field via GraphQL API.
What I did:
Created a document with Integration field https://prnt.sc/11dima8
Tried to fetch the product data via GraphQL API, but product metafields are missed https://prnt.sc/11dinv1
What did I check:
The metafields can be found via Shopify GraohQL https://prnt.sc/11akxvp
Data is synced https://prnt.sc/11diq30
How can I retrieve product metafields from Shopify using Prismic Integration field? Does somebody have the same scenario? Probably some extra configurations should be done, but I'm not aware about them.
Thanks in advance!
I don't think that question is relevant anymore as only Prismic team knows about this issue, here is the topic on Prismic forum: https://community.prismic.io/t/integration-field-not-possible-to-receive-shopify-product-metafields/
Well, in fact, fetching Metadata from Shopify requires making an extra call to Shopify API that makes their API time out on the response size.
One temporary solution that we can provide for the moment is to add a link to your metadata, and you fetch them after on your side.
Having a micro-service to fetch all the data works as well, but you have to use a queue system so that if any item fails to sync due to a timeout, for example, you try several times to get it.
Also, you need to manage the authentication with Shopify API on your own.
I am trying to add a special via the foursquare api Add special endpoint.
I am generating a proper POST request and getting a similar response to what the api should return. But it still wont show up on the specials on foursquare.
Do I need to add a campaign too for it to show up?
This is the response object I am getting:
{"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":0}}],"response":{"special":{"id":"51ed8c2a498e821be0469850","type":"friends","status":"New
- in review","count1":10,"name":"Friends Special...!","text":"Everyone gets free cookies??","unlockedText":"hgc","autoRedeem":false}}}
Any ideas on what needs to be done?
PS: I am able to add a special manually on foursquare!!
This venue is an office and according to this api doc offices and homes aren't allowed to add specials. This is a bit of a conflict.
Is it that offices are not allowed to add specials only via the API since I am able to create a special manually on foursquare.
Alright so, got the answer.. Create a special then create a campaign works!!
But I'm still wondering how I was able to add a special when the documentation clearly says that homes and offices aren't allowed to do so!
When making a Foursquare venue details API call, the specialsNearby field does not exist in the json response. I have tried hundreds of different venues, and none of them contain this field (they do contain the 'specials' field though).
I'm using v2 of the foursquare API, and giving it a version string of v=20120417.
Any assistance in obtaining the nearby specials would be much appreciated!
It does look like we've stopped sending down the specialsNearby field -- once I can confirm with a few of the other dev's, we'll update the docs accordingly.
Edit: We have indeed deprecated this field in favor of the Explore endpoint below.
But, no need to worry -- there's an easy way to get the same info!
Check out our Explore endpoint -- https://developer.foursquare.com/docs/venues/explore
Pass "intent=specials" to that endpoint, and you'll get all the nearby specials.
The website has had for some time now a section that shows friends who have been to a certain venue, yet I do not see an endpoint for getting this information.
Is such an endpoint in the works or is this considered a privacy issue like friends history even though they're both on the website???
There is no API endpoint with this functionality yet. There's a variety of reasons for why this is the case, but the primary one is that it hasn't hit the top of our priority stack just yet (this element of the website was not built off of the API)
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.