Commit 77bde7cd authored by Benjamin Beeker's avatar Benjamin Beeker

oauth-servlet test

parent 5f3ea348
Pipeline #10836150 passed with stages
in 4 minutes and 54 seconds
......@@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.comhix.twitch</groupId>
<version>0.0.3</version>
<version>0.0.4</version>
<artifactId>twitch-api</artifactId>
<name>Twitch API</name>
<url>https://nozomibk.gitlab.io/twitch-api</url>
......@@ -53,7 +53,7 @@
<dependency>
<groupId>de.comhix.commons</groupId>
<artifactId>logging</artifactId>
<version>1.2.0</version>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
......
......@@ -12,7 +12,6 @@ import okhttp3.OkHttpClient;
import okhttp3.RequestBody;
import org.apache.commons.lang3.RandomStringUtils;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Map;
......@@ -65,7 +64,7 @@ public class TwitchAuthenticator {
return targetUrl;
}
public Observable<OAuthResponse> getOAuthToken(String authCode) throws IOException {
public Observable<OAuthResponse> getOAuthToken(String authCode) {
OkHttpClient client = new OkHttpClient.Builder().build();
Map<String, String> postData = newHashMap();
postData.put("client_id", clientInformation.getClientId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment