I am trying to upload a photo to a venue using the Foursquare API in an Android app. But I get FileNotFoundExceptio
n at httpsUrlConnection.getInputStream
. Is it possible to upload photo to venue using foursquare api? If so, how can I do that?
Asked
Active
Viewed 211 times
0

Durandal
- 5,575
- 5
- 35
- 49

user1952115
- 17
- 1
- 7
-
What SDK or mechanism are you using to do the upload? Please provide more information and preferably where in your code you're seeing errors – octopi Mar 04 '14 at 04:03
-
I am using Anrdoid 4.2.2(API 17). I'd like to know if Foursquare blocked api to upload photo. – user1952115 Mar 04 '14 at 09:09
-
You should be able to upload a photo if you make the correct POST request. See https://developer.foursquare.com/docs/photos/add for full docs on this – octopi Mar 04 '14 at 21:30
-
I tried, and I got response code 410. I found out that that code means the resource existed before but not now because it was deleted. Does it mean that Foursquare blocked the api? – user1952115 Mar 05 '14 at 08:59
-
What does the body of the response say? You're probably running into versioning issues: are you passing in a `v` param with your API call? See https://developer.foursquare.com/overview/versioning – octopi Mar 05 '14 at 16:31