Forum Discussion
Connect to API. Bearer Token
Anonymous ....looks like that's all correct. Have you tried making a call in Postman yet? Let me know.
Hi! I'm in! Samsara support just got back to me. The link for us on this side of the pond must be https://api.eu.samsara.com
Thanks Again for your help.
So, just for the record:
Then select Anonymous in the next section.
- jayhawk6 years agoAdvocate I
Great. Glad you're rolling. Good luck,
- RBlazei6126 years agoNew Member
This thread was a game-changer for me, Samsara support has been absolutely no help. jayhawk Icey curious if either of you have had luck putting a parameter on your Samsara feed using startMs and endMs? I am getting real-time values but cannot figure out how to add a time range parameter to my query to allow me to get a range of values. I tried adding 'https://api.samsara.com/v1/industrial/data/?startMs>1577858400 to pull all values since January 1, 2020 but I receive a data source error.
Most likely it is a problem with me, I am an accountant malpracticing as a programmer.
- jayhawk6 years agoAdvocate I
That API call would be this.... https://api.samsara.com/v1/industrial/data?startMs=1577858400000&endMs=1587099600000
I don't think you can use the < or > signs in an API call.
startMs=1577858401000 would represent Jan 1, 2020
endMs=1587099601000 would represent Today,
in this example for a time range.
I guess depending on how you have your devices set up, you should get something back. I didn't get any info back for ours.
Yes...Samsara support is by far the worst. I actually believe they just don't have the expertise who know things.