Skip to content

Latest commit

 

History

History
88 lines (66 loc) · 3.25 KB

DeliveryApi.md

File metadata and controls

88 lines (66 loc) · 3.25 KB

DeliveryApi

All URIs are relative to https://indus.api.michelin.com

Method HTTP request Description
desadvAmnC10DesadvPost POST /desadv/amn/C1_0/desadv Obtain your Despatch Advices information

desadvAmnC10DesadvPost

EDIWheelC10DesadvResponse desadvAmnC10DesadvPost(edIWheelC10DesadvRequest)

Obtain your Despatch Advices information

This service will give you your Despatch Advices information.

Example

// Import classes:
import com.michelin.adk.amn.ApiClient;
import com.michelin.adk.amn.ApiException;
import com.michelin.adk.amn.Configuration;
import com.michelin.adk.amn.auth.*;
import com.michelin.adk.amn.models.*;
import com.michelin.adk.amn.o2c.DeliveryApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://indus.api.michelin.com");
    
    // Configure OAuth2 access token for authorization: oAuth2ClientCredentials
    OAuth oAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("oAuth2ClientCredentials");
    oAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

    // Configure API key authorization: apikey
    ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey");
    apikey.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //apikey.setApiKeyPrefix("Token");

    // Configure HTTP basic authorization: basicAuth
    HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
    basicAuth.setUsername("YOUR USERNAME");
    basicAuth.setPassword("YOUR PASSWORD");

    DeliveryApi apiInstance = new DeliveryApi(defaultClient);
    EDIWheelC10DesadvRequest edIWheelC10DesadvRequest = new EDIWheelC10DesadvRequest(); // EDIWheelC10DesadvRequest | 
    try {
      EDIWheelC10DesadvResponse result = apiInstance.desadvAmnC10DesadvPost(edIWheelC10DesadvRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DeliveryApi#desadvAmnC10DesadvPost");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
edIWheelC10DesadvRequest EDIWheelC10DesadvRequest

Return type

EDIWheelC10DesadvResponse

Authorization

oAuth2ClientCredentials, apikey, basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Delivery query responsed -
401 Authentication information is missing or invalid * WWW_Authenticate -