I realize this is s pretty inactive thread, but I thought I’d add some info.
I asked their support about two months ago if they had an API for private use, and they replied with a “no”, but that they have one planned. No clue when they will release it though.
However, yesterday I was on their web application, and when inspecting the site, and in the network tab, I noticed that it used an API with an auth token to get all the data it needed.
So I just copied the token and used curl on another computer, and lo and behold, it spat out some info about my device, including the coordinates.
I’m not sure if this token is a temporary one, but it still works after 24h.
I didn’t dive too deep into the API, but if anyone else wants to try it, here’s how I got it (Chrome);
- Go to SweTrack Web App and sign in.
- Press Ctrl+Shift+I to open the inspect menu.
- Go to the Network tab.
- Press the Clear button (next to the red button at the top left corner).
- Select your device.
- Click on a getDevices item in the Name list.
- Scroll down to the Request Headers.
- Right click on “authorization” and Copy value.
Now with curl;
curl -XGET -H "Content-type: application/json" -H "authorization: YourAuthToken" "https://cloudappapi.com/api/getDevices"
Example output:
[[{"id":xxxxx,"name":"xxxxx","uniqueid":"xxxxxxxxxxx","description":" ","attributes":"{\"speedLimit\":\"32\"}","category":"Car_Red","lastupdate":"2023-01-23T09:07:34.000Z","battery":50,"latitude":xx.xxxxxxxxxxxxxx,"longitude":xx.xxxxxxxxxxxxxxxx,"speed":2,"positionsattributes":"{\"sat\":x,\"ignition\":false,\"upload_mode\":4,\"realtime_data\":0,\"distance\":x.xx,\"totalDistance\":xxxxxx.xx,\"motion\":true,\"batteryLevel\":20,\"charge\":false,\"GSM_Signal\":100}","PhotoLink":"https://swetrack.com/inapp-image/maxitracker.png","model":"MaxiTracker","externalpowerrange":"not-supported","currentpowersavingmode":"off","newpowersavingmode":null,"currentpowerswich":"not-supported","settingsattributes":null,"status":"online","speedLimit":51,"ignition":false,"charge":false,"externalpowerpercent":"not-supported","externalpowervolt":"not-supported"}],[]]
Hopefully this token will stay the same.
With this, it should be pretty simple to implement.
I’ve already made a simple test with this on my Android with Tasker to open up Google Maps and pin the location of the tracker.