-
Notifications
You must be signed in to change notification settings - Fork 81
/
api-config.js
33 lines (30 loc) · 1.11 KB
/
api-config.js
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
const key_config = {
app_key: '3436445128',
app_secret: '6a1d41d969da490d9a37d4457184ea0b',
redirect_uri: 'http://192.168.1.104:8089/splash'
}
const host_config = {
local: 'http://192.168.1.104:8089/',
host: 'https://pixel-api.herokuapp.com/',
oauth: 'https://open.weibo.cn/oauth2/authorize',
}
const api_router_config = {
oauth_post: '/oauth2/access_token',
home_timeline: '/statuses/home_timeline.json',
public_timeline: '/statuses/public_timeline.json',
my_content: '/statuses/user_timeline.json',
userinfo: '/users/show.json',
content_comments: '/comments/show.json',
send_post_text: '/statuses/update.json',
send_post_image: '/statuses/upload.json',
at_me_statue: '/statuses/mentions.json',
at_me_comment: '/comments/mentions.json',
receive_comment: '/comments/to_me.json',
send_comment: '/comments/by_me.json',
my_follower: '/friendships/followers.json',
my_friend: '/friendships/friends.json'
}
export const HOST_CONCIG = host_config
export const KEY_CONFIG = key_config
export const API_ROUTER_CONFIG = api_router_config
export const DEBUG = false