-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-notes
69 lines (53 loc) · 1.07 KB
/
api-notes
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
- addSharer
- toggleSharer
- getSharerInfoById, getSharerInfoByCode
gives complete info on a single sharerer, all their clicks (with info), and actions (with info)
- getAllSharers
gives sharer id, code link, clicks count, actions count, and enabled only
- getActionTypes
- doAction
*let them pick json vs xml
*description is not the best name for the extra data in action. just call it extra_data (optional)
api result return
{
meta:{
status: "",
message: "",
timestamp: ""
}
doAction
para:{
clickid:"",
action_type"",
extra_data"",
}
response:{
}
addSharer
para:{
}
response:{
New_Sharer_Identifier:"",
Code:"",
Redirect_Link: "",
}
toggleSharer
para:{
Sharer_Identifier:"",
Enable:"",
}
response:{
Sharer_Identifier:"",
Enable:""
}
getSharerInfoById(Code)
para:{
Sharer_Identifier:"",
}
response:{
}
getAllSharers
para:{
}
response:{
}