1- # Dyspatch Java API client
1+ # dyspatch-java
22
33Dyspatch API
44- API version: 2020.04
5- - Build date: 2020-01-02T21:36:38.986Z[ GMT]
65
76# Introduction
87
9- The Dyspatch API is based on the REST paradigm and features resource based URLs
10- with standard HTTP response codes to indicate errors. We use standard HTTP
11- authentication and request verbs and all responses are JSON formatted. See our
12- [ Implementation
13- Guide] ( https://docs.dyspatch.io/development/implementing_dyspatch/ ) for more
14- details on how to implement Dyspatch.
8+ The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response
9+ codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted.
10+ See our [ Implementation Guide] ( https://docs.dyspatch.io/development/implementing_dyspatch/ ) for more details on
11+ how to implement Dyspatch.
1512
16- For more information, please visit [ https://docs.dyspatch.io ] ( https://docs.dyspatch.io )
13+ ## API Client Libraries
14+ Dyspatch provides API Clients for popular languages and web frameworks.
15+
16+ - [ Java] ( https://github.com/getdyspatch/dyspatch-java )
17+ - [ Javascript] ( https://github.com/getdyspatch/dyspatch-javascript )
18+ - [ Python] ( https://github.com/getdyspatch/dyspatch-python )
19+ - [ C#] ( https://github.com/getdyspatch/dyspatch-dotnet )
20+ - [ Go] ( https://github.com/getdyspatch/dyspatch-golang )
21+ - [ Ruby] ( https://github.com/getdyspatch/dyspatch-ruby )
22+
23+
24+ For more information, please visit [ https://docs.dyspatch.io ] ( https://docs.dyspatch.io )
1725
1826* Automatically generated by the [ OpenAPI Generator] ( https://openapi-generator.tech ) *
1927
2028
2129## Requirements
2230
2331Building the API client library requires:
24- 1 . Java 1.7 +
32+ 1 . Java 1.8 +
25332 . Maven/Gradle
2634
2735## Installation
@@ -48,7 +56,7 @@ Add this dependency to your project's POM:
4856<dependency >
4957 <groupId >io.dyspatch</groupId >
5058 <artifactId >dyspatch-java</artifactId >
51- <version >5.0.1 </version >
59+ <version >5.0.2 </version >
5260 <scope >compile</scope >
5361</dependency >
5462```
@@ -58,7 +66,7 @@ Add this dependency to your project's POM:
5866Add this dependency to your project's build file:
5967
6068``` groovy
61- compile "io.dyspatch:dyspatch-java:5.0.1 "
69+ compile "io.dyspatch:dyspatch-java:5.0.2 "
6270```
6371
6472### Others
@@ -71,7 +79,7 @@ mvn clean package
7179
7280Then manually install the following JARs:
7381
74- * ` target/dyspatch-java-5.0.1 .jar `
82+ * ` target/dyspatch-java-5.0.2 .jar `
7583* ` target/lib/*.jar `
7684
7785## Getting Started
@@ -92,16 +100,17 @@ public class Example {
92100 public static void main (String [] args ) {
93101 ApiClient defaultClient = Configuration . getDefaultApiClient();
94102 defaultClient. setBasePath(" https://api.dyspatch.io" );
95-
103+
96104 // Configure API key authorization: Bearer
97- defaultClient. setApiKey(System . getenv(" DYSPATCH_API_KEY" ));
98- defaultClient. setApiKeyPrefix(" Bearer" );
105+ ApiKeyAuth Bearer = (ApiKeyAuth ) defaultClient. getAuthentication(" Bearer" );
106+ Bearer . setApiKey(" YOUR API KEY" );
107+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
108+ // Bearer.setApiKeyPrefix("Token");
99109
100- // Initialize your API objects:
101110 DraftsApi apiInstance = new DraftsApi (defaultClient);
102111 String draftId = " draftId_example" ; // String | A draft ID
103112 String languageId = " languageId_example" ; // String | A language ID (eg: en-US)
104- String accept = " application/vnd.dyspatch.2020.04+json" ;
113+ String accept = " accept_example " ; // String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \" application/vnd.dyspatch.2020.04+json\"
105114 try {
106115 apiInstance. deleteLocalization(draftId, languageId, accept);
107116 } catch (ApiException e) {
0 commit comments