batch/run for location/history, possible?
  • Hi

    I'm currently looping through a number of users and fetching their location/history (after a different timestamp for each user) in order to do some processing on the data. 

    Using php/curl, first fetching the users access token via oauth/token, and then firing off the location/history as that user.

    Is there a more efficient way of doing it, either via batch/run (I can't seem to get it working, though due to different access token for each user is it possible?), or is there a way to get all users location/history in one call?

    Your help would be appreciated.

    Thanks
  • 1 Comment sorted by
  • Do I send the request of as follows???

    {
    "access_token":APPLICATION_ACCESS_TOKEN,
    "batch": [
    {
    "relative_url":"location/history",
    "headers": [
    "Authorization: OAuth USER_ACCESS_TOKEN"
    ],
    "body": {
    "after":"xxx"
    }
    }
    ]
    }

    or like this???

    {
    "access_token":APPLICATION_ACCESS_TOKEN,
    "batch": [
    {
    "relative_url":"location/history"
    "body": {
    "after":"xxx"
    "access_token": USER_ACCESS_TOKEN
    }
    }
    ]
    }

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion