sparkfun / phant

the data logging engine behind data.sparkfun.com
700 stars 98 forks source link

Trouble Interacting With API #94

Closed Amakaruk closed 10 years ago

Amakaruk commented 10 years ago

I’m trying to interact with the api via http. I’ve worked with api’s before, so I am not sure what’s going on. The docs say it supports both GET and POST requests.

I’m probably missing something simple. Here’s what I’m using and the error I am getting: https://gist.github.com/coloradobum/be8a6d5f55dd40bf4a04#file-gistfile1-txt

toddtreece commented 10 years ago

That stream doesn't exist on the server, so it might have been deleted. Are you using someone else's stream? I only ask because the gist was posted from a different GitHub account.

Want to try creating a stream and giving it a shot with new keys?

toddtreece commented 10 years ago

I see what's going on here. http://data.osbh.smartcitizen.me is hosting it's own copy of phant, and the streams exist on that server. You'd just need to replace https://data.sparkfun.com with http://data.osbh.smartcitizen.me in any of your API calls.

coloradobum commented 10 years ago

Thanks Todd- that did the trick!

Amakaruk commented 10 years ago

Thank you Todd - we really appreciate it.

toddtreece commented 10 years ago

@Amakaruk & @coloradobum: That looks like a really interesting project! Just so you know, you can use the server config builder if you want to use the http manager instead of telnet: https://data.sparkfun.com/config

toddtreece commented 10 years ago

I'm going to close this one, but let me know if you have any other issues.

Amakaruk commented 10 years ago

Thanks so much Todd

On Thu, Aug 21, 2014 at 2:58 PM, Todd Treece notifications@github.com wrote:

I'm going to close this one, but let me know if you have any other issues.

— Reply to this email directly or view it on GitHub https://github.com/sparkfun/phant/issues/94#issuecomment-52983483.