-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSocialMediaConstants.java
34 lines (24 loc) · 1.15 KB
/
SocialMediaConstants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.socialmedia;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.common.collect.Lists;
import java.util.List;
/**
* Created by omoto on 26/8/16.
*/
public interface SocialMediaConstants {
public static String GOOGLE ="google";
public static String YOUTUBE ="youtube";
public static String FACEBOOK ="facebook";
//api-keys for social-media
public static final String GOOGLE_APIKEY = "$YOUR_PATH_TO/client_secret.json";
public static final String SOCIALMEDIA = "socialmedia";
//google redirection callback
public static final String GOOGLE_CALLBACK="$YOUR_CALLBACK_URL/googlecallback.htm";
public static final HttpTransport HTTP_TRANSPORT = new NetHttpTransport();
public static final JsonFactory JSON_FACTORY = new JacksonFactory();
public static final String CREDENTIALS_DIRECTORY = ".oauth-credentials";
public static final List<String> SCOPES = Lists.newArrayList("https://www.googleapis.com/auth/youtube.upload");
}