Skip to content

Commit d20219d

Browse files
committed
adding basic auth and a couple of provider functions to configure httpProvider
1 parent 556a9c3 commit d20219d

File tree

10 files changed

+2394
-134
lines changed

10 files changed

+2394
-134
lines changed

config.dist.json

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,75 @@
11
{
22
"baseUrl": "http://sandbox.YourDomain.com/wp-json",
3+
"authType": "basic",
34
"oauth1": {
4-
"enabled": false,
5-
"ID": "4",
6-
"Key": "sDc51JgH2mFu",
7-
"Secret": "LnUdIsyhPFnURkatekRIAUfYV7nmP4iF3AVxkS5PRHPXxgOW"
5+
"request": "http://sandbox.YourDomain.com/oauth1/request",
6+
"authorize": "http://sandbox.YourDomain.com/oauth1/authorize",
7+
"access": "http://sandbox.YourDomain.com/oauth1/access",
8+
"Key": "yourKey",
9+
"callback": "http://sandbox.YourDomain.com/whatever",
10+
"Secret": "yourSecret"
11+
},
12+
"basic": {
13+
"login": "login",
14+
"password": "password"
15+
},
16+
"postsMethods": {
17+
"getList": [{
18+
"per_page": 1
19+
}],
20+
"get": [2016],
21+
"getMetaList": [2016],
22+
"getMeta": [2016, 46575],
23+
"getRevisionList": [2016],
24+
"getRevision": [2016, 2026],
25+
"getCategoryList": [2016],
26+
"getCategory": [2016, 86],
27+
"getTagList": [2016],
28+
"getTag": [2016, 87]
29+
},
30+
"pagesMethods": {
31+
"getList": [{
32+
"per_page": 1
33+
}],
34+
"get": [535],
35+
"getMetaList": [535],
36+
"getMeta": [535, 1],
37+
"getRevisionList": [535],
38+
"getRevision": [535, 2035]
39+
},
40+
"mediaMethods": {
41+
"getList": [{
42+
"per_page": 1
43+
}],
44+
"get": [2032]
45+
},
46+
"typesMethods": {
47+
"getList": [{
48+
"per_page": 1
49+
}],
50+
"get": ["attachment"]
51+
},
52+
"statusesMethods": {
53+
"getList": [],
54+
"get": ["publish"]
55+
},
56+
"taxonomiesMethods": {
57+
"getList": [],
58+
"get": ["category"]
59+
},
60+
"termsMethods": {
61+
"getCategoryList": [],
62+
"getCategory": [86],
63+
"getTagList": [],
64+
"getTag": [59]
65+
},
66+
"usersMethods": {
67+
"getList": [],
68+
"get": [1],
69+
"me": []
70+
},
71+
"commentsMethods": {
72+
"getList": [],
73+
"get": [686]
874
}
975
}

0 commit comments

Comments
 (0)