aboutsummaryrefslogtreecommitdiff
path: root/src/constants/api.ts
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2020-10-19 14:09:01 -0400
committerGitHub <noreply@github.com>2020-10-19 14:09:01 -0400
commitf5853b77ef9506df056029282c475e5628fb6ab0 (patch)
treefd6c50c0ef7b8c133897b6a5f8cac64ac5e6aa2b /src/constants/api.ts
parentab7fa09af967e0a8cf2ca53dfb24f8bc8a6886f7 (diff)
[TMA-272] Add browser login flow to Instagram social linking (#56)
* added in-app browser package and added social link for instagram * added comments and improved code clarity * added more skeleton code * Finished FB linking * updated facebook oauth to request for permission * finished twitter sign on * minor fixes
Diffstat (limited to 'src/constants/api.ts')
-rw-r--r--src/constants/api.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/constants/api.ts b/src/constants/api.ts
index d5733592..8e935714 100644
--- a/src/constants/api.ts
+++ b/src/constants/api.ts
@@ -14,3 +14,14 @@ export const GET_IG_POSTS_ENDPOINT: string = API_URL + 'posts-ig/';
export const SEARCH_ENDPOINT: string = API_URL + 'search/';
export const MOMENTS_UPLOAD_ENDPOINT: string = API_URL + 'moments/';
export const VERIFY_INVITATION_CODE_ENDPOUNT: string = API_URL + 'verify-code/';
+
+// Social Link
+export const LINK_IG_ENDPOINT: string = API_URL + 'link-ig/';
+export const LINK_FB_ENDPOINT: string = API_URL + 'link-fb/';
+export const LINK_TWITTER_ENDPOINT: string = API_URL + 'link-twitter/';
+
+// Social Link OAuth
+export const DEEPLINK: string = 'https://tinyurl.com/y3o4aec5';
+export const LINK_IG_OAUTH: string = `https://www.instagram.com/oauth/authorize/?client_id=205466150510738&redirect_uri=${DEEPLINK}&scope=user_profile,user_media&response_type=code`;
+export const LINK_FB_OAUTH: string = `https://www.facebook.com/v8.0/dialog/oauth?client_id=1308555659343609&redirect_uri=${DEEPLINK}&scope=user_posts,public_profile&response_type=code`;
+export const LINK_TWITTER_OAUTH: string = API_URL + 'link-twitter-request/';