Page 1 of 1

ETCars API support...

Posted: Fri May 03, 2019 11:16 am
by Jagman
I was told that ETCars has the ability to connect directly to an API to send data. Is that true? If so how would I go about doing that? Evidently, this post needs to be 256 characters so I need to add some filler words so I can reach the min amount. There we go

Re: ETCars API support...

Posted: Fri May 03, 2019 6:49 pm
by jammerxd
ETCARS can forward delivery data to an endpoint specified by a user. This feature is currently a dev feature only as I'm waiting for the sdk update(supposedly coming with version 1.35). To do this, sign in with steam on https://etcarsdev.menzelstudios.com. Click the user avatar and hit manage projects. Only do this if you are setting up and managing the forwarding API. Once you have a project created, click on your user avatar and click Delivery forwarding. Search for your project by name and select it and then make sure the API Enabled switch is set to enabled and click submit. Now anyone can find the API endpoint you created and add it to their profile just as you did. This will now tell ETCARS to forward your deliveries to the project you specified. Keep in mind any api setup now is likely to break in the coming months due to updates. Hopefully this answers your question.


Josh

Re: ETCars API support...

Posted: Sun May 05, 2019 8:29 am
by Jagman
Alright, cool thank you. One question though, how is the data loaded in? Does it just put that data in the callback url. I'm new to API's and I am having problems setting it up properly. Could you possibly explain what I will need to do? You can also email me if that is easier.
Thanks,
-Jagman

Re: ETCars API support...

Posted: Sun May 05, 2019 11:21 am
by jammerxd
The API url will receive a POST request with the data. The data is contained in the data field. The data field is a json string containing the job data. The API key will be in whatever field you specified and use the method you specified. You may need to perform a utf8 encode before decoding the data.

Josh