i am looking for a way to send Rest-Requests to the Einstein Vision Rest-API via Android. The integrated RestRequest class somehow only supports Requests to the Salesforce Platform and doesn't let me use a custom endpoint or a custom body.
I've tried OkHttpClient already, but the Response is a "URL No Longer Exists" Error although the same endpoint works with postman and curl!
(the Endpoint im using is https://api.einstein.ai/v2/vision/predict with a base64 encoded Image, the generalimageclassifier as the modelid and a manually generated Token via https://api.einstein.ai/token)
Does the Token generated by the Android SDK match the Token you get on the https://api.einstein.ai/token page?