instajam icon indicating copy to clipboard operation
instajam copied to clipboard

Don't require user authentication

Open dsas opened this issue 11 years ago • 2 comments

Instajam always tries to pass an auth token, even if one doesn't exist. It would be nice if authentication was not required - the instagram API does not require it for all calls, the client_id can be passed instead.

A call to API.location.search generates this URL: https://api.instagram.com/v1/locations/search?lat=53.23597&lng=1.42500&access_token=null&callback=instajam140685247595

Ideally if authentication isn't required it should generate this URL: https://api.instagram.com/v1/locations/search?lat=53.23597&lng=-1.42500&callback=instajam140685247595&client_id=xxxxxx

dsas avatar Aug 01 '14 00:08 dsas

Thanks for the note, @dsas. I've been addressing this flaw over in the multiple-instances branch. It's also a full-rewrite, albeit with the same API. It's mostly fully functioning, just pending additional tests to be written. Take a look and see if it suits your needs. Note that the documentation in the README hasn't been updated in that branch yet, but all the source files are here.

EDIT: Have a look at the tests to see how the initialization should be done now.

mikefowler avatar Aug 01 '14 19:08 mikefowler

@mikefowler sorry for the slow response, I've had a quick try and it seems perfect, thanks.

dsas avatar Aug 13 '14 22:08 dsas