-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SubredditModeration with approve and remove.
- Loading branch information
Showing
6 changed files
with
310 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
tests/integration/cassettes/TestSubredditModeration.test_approve.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"http_interactions": [ | ||
{ | ||
"recorded_at": "2016-03-20T06:34:00", | ||
"request": { | ||
"body": { | ||
"encoding": "utf-8", | ||
"string": "grant_type=password&username=<USERNAME>&password=<PASSWORD>" | ||
}, | ||
"headers": { | ||
"Accept": "*/*", | ||
"Accept-Encoding": "identity", | ||
"Authorization": "Basic <BASIC_AUTH>", | ||
"Connection": "keep-alive", | ||
"Content-Length": "57", | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
"User-Agent": "<USER_AGENT> PRAW/4.0.0a1 prawcore/0.0.7" | ||
}, | ||
"method": "POST", | ||
"uri": "https://www.reddit.com/api/v1/access_token" | ||
}, | ||
"response": { | ||
"body": { | ||
"encoding": "UTF-8", | ||
"string": "{\"access_token\": \"7302867-O-GDsqGMLBCnkbRipX0Iiv0lYvU\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" | ||
}, | ||
"headers": { | ||
"CF-RAY": "286722c8c7a239a6-PHX", | ||
"Connection": "keep-alive", | ||
"Content-Length": "113", | ||
"Content-Type": "application/json; charset=UTF-8", | ||
"Date": "Sun, 20 Mar 2016 06:34:00 GMT", | ||
"Server": "cloudflare-nginx", | ||
"Set-Cookie": "__cfduid=debcc4e298201f19f1d79dc741797de021458455640; expires=Mon, 20-Mar-17 06:34:00 GMT; path=/; domain=.reddit.com; HttpOnly", | ||
"Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload", | ||
"X-Moose": "majestic", | ||
"cache-control": "max-age=0, must-revalidate", | ||
"x-content-type-options": "nosniff", | ||
"x-frame-options": "SAMEORIGIN", | ||
"x-xss-protection": "1; mode=block" | ||
}, | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"url": "https://www.reddit.com/api/v1/access_token" | ||
} | ||
}, | ||
{ | ||
"recorded_at": "2016-03-20T06:34:01", | ||
"request": { | ||
"body": { | ||
"encoding": "utf-8", | ||
"string": "api_type=json&id=t3_4b536h" | ||
}, | ||
"headers": { | ||
"Accept": "*/*", | ||
"Accept-Encoding": "identity", | ||
"Authorization": "bearer 7302867-O-GDsqGMLBCnkbRipX0Iiv0lYvU", | ||
"Connection": "keep-alive", | ||
"Content-Length": "26", | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
"Cookie": "loid=M1Bw5euB4Y5c5QetHq; __cfduid=debcc4e298201f19f1d79dc741797de021458455640; loidcreated=2016-03-20T06%3A34%3A00.484Z", | ||
"User-Agent": "<USER_AGENT> PRAW/4.0.0a1 prawcore/0.0.7" | ||
}, | ||
"method": "POST", | ||
"uri": "https://oauth.reddit.com/api/approve/?raw_json=1" | ||
}, | ||
"response": { | ||
"body": { | ||
"encoding": "UTF-8", | ||
"string": "{}" | ||
}, | ||
"headers": { | ||
"CF-RAY": "286722ccdf5c39a6-PHX", | ||
"Connection": "keep-alive", | ||
"Content-Length": "2", | ||
"Content-Type": "application/json; charset=UTF-8", | ||
"Date": "Sun, 20 Mar 2016 06:34:01 GMT", | ||
"Server": "cloudflare-nginx", | ||
"Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload", | ||
"X-Moose": "majestic", | ||
"cache-control": "private, s-maxage=0, max-age=0, must-revalidate", | ||
"expires": "-1", | ||
"x-content-type-options": "nosniff", | ||
"x-frame-options": "SAMEORIGIN", | ||
"x-ratelimit-remaining": "599.0", | ||
"x-ratelimit-reset": "359", | ||
"x-ratelimit-used": "1", | ||
"x-ua-compatible": "IE=edge", | ||
"x-xss-protection": "1; mode=block" | ||
}, | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"url": "https://oauth.reddit.com/api/approve/?raw_json=1" | ||
} | ||
} | ||
], | ||
"recorded_with": "betamax/0.5.1" | ||
} |
Oops, something went wrong.