question

domanowski avatar image
0 Likes"
domanowski asked

Unable to set sandbox url with Java Restful Sell API

We have built the OrderApi, PaymentDisputeApi, and ShippingFulfillmentApi using swagger-codegen as documented in the Ebay developer docs.

We have also create a test user in the sandbox and retrieved an access token.
The code is properly being set as the bearer token in the API.

However, based on the following code and results, I cannot find any documentation on how to change the endpoint from
https://api.ebay.com
to
https://api.sandbox.ebay.com

Can you please put us in touch with the appropriate resource or get an answer for us?


package com.neumonics.ebay.testcases;

import io.swagger.client.ApiClient;
import io.swagger.client.ApiException;
import io.swagger.client.api.OrderApi;

public class BrowseTest {

public static void main(String[] args) throws ApiException {
ApiClient apiClient=new ApiClient();
apiClient.setAccessToken("v^1.1#i^1#p^1#r^0#f^0#I^3#t^H4sIAAAAAAAAAOVYbWwURRjutddiLaU/RL5CyLEYo+Du7e7d3vVWenBtaSmhvcKVCzQYmNudbZfu7a47s7YXom1qQ8RA6h9CVCA1miigTfwgRsUEMX4AkggRSEwMBjVCBRRR0UjEub1SrpVAS8/YxPtz2Zn3fed9nnk/ZobtKiqev2nppiulrkn5fV1sV77LxZWwxUWFC6YU5M8qzGOzBFx9Xfd1ubsLzi5EIKmZ4kqITENH0NOR1HQkOoMVlG3pogGQikQdJCESsSTGIvXLRZ5hRdMysCEZGuWpq66g/EDx+4MJng8GFJYP+sioft1mk1FBgYAEEwEIQcDPyXK5QOYRsmGdjjDQcQXFszxHczzNsU1cUGT9osAxvC/UTHni0EKqoRMRhqXCjruio2tl+XprVwFC0MLECBWui9TEopG66iUNTQu9WbbCgzzEMMA2Gv5VZcjQEweaDW+9DHKkxZgtSRAhyhvOrDDcqBi57swduO9QDVkWCr6gTxYCgk8A/pxQWWNYSYBv7Ud6RJVpxREVoY5VnLodo4SNxAYo4cGvBmKirtqT/lthA01VVGhVUEsqI2sijY1UuB5gXG0kAV0JElBrBBYdq1xNB/xyeQgGAU/LQRjyyX52cKGMtUGaR6xUZeiymiYNeRoMXAmJ13A4NwFRyOKGCEX1qBVRcNqjbLnQ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jn7egdCO87EP24f//WBzZq2x86f+7Vw43m/uZl6zuPXnw3eFR7zb/iyeq+u2esn1nfedf5lw/ev9dU8nbFN+9Jnp59aseksuqjYOrPtf3oUmxWb+mRV65e3eN/fM3s3sU9T838cfGUle4pS7ZOy//8xHGrrMAzZ7LyXGYb/wYG+eohfRMAAA==");
apiClient.setDebugging(true);

OrderApi orderApi=new OrderApi(apiClient);

orderApi.getOrder("44444", "fieldGroup");


}

}

restful api
· 2
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

friendly advice: never never ever post any token publicly!

0 Likes 0 ·

That's great advise. Thanks.

0 Likes 0 ·

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.