All URIs are relative to https://api.merge.dev/api/ats/v1
Method | HTTP request | Description |
---|---|---|
accountTokenRetrieve | GET /account-token/{public_token} |
AccountToken accountTokenRetrieve(publicToken)
Returns the account token for the end user with the provided public token.
// Import classes:
import merge_ats_client.ApiClient;
import merge_ats_client.ApiException;
import merge_ats_client.Configuration;
import merge_ats_client.auth.*;
import merge_ats_client.models.*;
import merge_ats_client.api.AccountTokenApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.merge.dev/api/ats/v1");
// Configure API key authorization: tokenAuth
ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
tokenAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tokenAuth.setApiKeyPrefix("Token");
AccountTokenApi apiInstance = new AccountTokenApi(defaultClient);
String publicToken = "publicToken_example"; // String |
try {
AccountToken result = apiInstance.accountTokenRetrieve(publicToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountTokenApi#accountTokenRetrieve");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
publicToken | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |