Android Question Json foursquare

Alisson

Active Member
Licensed User
How can receive the response Json of the foursquare?

I create the code:

B4X:
Register.Initialize("location", Me)
    Register.Download2("https://api.foursquare.com/v2/venues/explore", _
      Array As String("ll", "40,74", _
      "oauth_token", "Y2E23SEE4564654EEHOIASAOIH4556158184", _
      "v", "20160734"))

The response json:

B4X:
Case "location"
              
        Dim i As Int

     ret = Job.GetString
     parser.Initialize(ret)      
    Dim root As List = parser.NextArray
  
  
    For Each colroot As Map In root

    Dim index As String = colroot.Get("address")
    Next

I not receive response.

Can someone help me.

Thanks very much!
 

DonManfred

Expert
Licensed User
Longtime User
this is the result i got

B4X:
{"meta":{"code":401,"errorType":"invalid_auth","errorDetail":"OAuth token invalid or revoked."},"response":{}}

JobDone IS raised...
 
Upvote 0
Top