Skip to content

Commit

Permalink
Add support for managing lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Oct 25, 2021
1 parent e3e2b4b commit b1342bf
Show file tree
Hide file tree
Showing 5 changed files with 847 additions and 0 deletions.
129 changes: 129 additions & 0 deletions cassettes/test_follow_and_unfollow_list.yaml
@@ -0,0 +1,129 @@
interactions:
- request:
body: '{"list_id": "84839422"}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '23'
Content-Type:
- application/json
User-Agent:
- Python/3.10.0 Requests/2.26.0 Tweepy/4.1.0
method: POST
uri: https://api.twitter.com/2/users/1072250532645998596/followed_lists
response:
body:
string: !!binary |
H4sIAAAAAAAAAKpWSkksSVSyqlZKy8/JyS/PzEtXsiopKk2trQUAAAD//wMA/FRoehsAAAA=
headers:
api-version:
- '2.27'
cache-control:
- no-cache, no-store, max-age=0
content-disposition:
- attachment; filename=json.json
content-encoding:
- gzip
content-length:
- '53'
content-type:
- application/json; charset=utf-8
date:
- Mon, 25 Oct 2021 07:24:49 UTC
server:
- tsa_b
set-cookie:
- personalization_id="v1_hlVVKDuf5oESwpgKPKVpkA=="; Max-Age=63072000; Expires=Wed,
25 Oct 2023 07:24:49 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None
- guest_id=v1%3A163514668949543599; Max-Age=63072000; Expires=Wed, 25 Oct 2023
07:24:49 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None
strict-transport-security:
- max-age=631138519
x-access-level:
- read-write-directmessages
x-connection-hash:
- bd61a0a6b7381c3a8f1601ff0c1e66c9ef64b2aa429e196fc71e553d3c848a65
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-rate-limit-limit:
- '50'
x-rate-limit-remaining:
- '47'
x-rate-limit-reset:
- '1635146788'
x-response-time:
- '120'
x-xss-protection:
- '0'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
Cookie:
- guest_id=v1%3A163514668949543599; personalization_id="v1_hlVVKDuf5oESwpgKPKVpkA=="
User-Agent:
- Python/3.10.0 Requests/2.26.0 Tweepy/4.1.0
method: DELETE
uri: https://api.twitter.com/2/users/1072250532645998596/followed_lists/84839422
response:
body:
string: !!binary |
H4sIAAAAAAAAAKpWSkksSVSyqlZKy8/JyS/PzEtXskpLzClOra0FAAAA//8DAMXGczccAAAA
headers:
api-version:
- '2.27'
cache-control:
- no-cache, no-store, max-age=0
content-disposition:
- attachment; filename=json.json
content-encoding:
- gzip
content-length:
- '54'
content-type:
- application/json; charset=utf-8
date:
- Mon, 25 Oct 2021 07:24:49 UTC
server:
- tsa_b
strict-transport-security:
- max-age=631138519
x-access-level:
- read-write-directmessages
x-connection-hash:
- bd61a0a6b7381c3a8f1601ff0c1e66c9ef64b2aa429e196fc71e553d3c848a65
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-rate-limit-limit:
- '50'
x-rate-limit-remaining:
- '48'
x-rate-limit-reset:
- '1635146822'
x-response-time:
- '55'
x-xss-protection:
- '0'
status:
code: 200
message: OK
version: 1

0 comments on commit b1342bf

Please sign in to comment.