refactor pixiv download tests refactor upload test refactor nico seiga test refactor twitter tests
99 lines
3.1 KiB
YAML
99 lines
3.1 KiB
YAML
---
|
|
http_interactions:
|
|
- request:
|
|
method: post
|
|
uri: https://oauth.secure.pixiv.net/auth/token
|
|
body:
|
|
encoding: US-ASCII
|
|
string: username=SENSITIVE&password=SENSITIVE&grant_type=password&client_id=bYGKuGVw91e0NMfPGp44euvGt59s&client_secret=HP3RmkgAmEGro0gn1x9ioawQE8WMfvLXDz3ZqxpK
|
|
headers:
|
|
Referer:
|
|
- http://www.pixiv.net
|
|
Accept-Encoding:
|
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
Accept:
|
|
- "*/*"
|
|
User-Agent:
|
|
- Ruby
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Server:
|
|
- nginx
|
|
Date:
|
|
- Wed, 28 Sep 2016 16:38:20 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '350'
|
|
Connection:
|
|
- keep-alive
|
|
Set-Cookie:
|
|
- PHPSESSID=14613426_ffea744d547ef6a5c3d7dbcbf41ba8aa; expires=Wed, 28-Sep-2016
|
|
17:38:20 GMT; Max-Age=3600; path=/; domain=.pixiv.net; secure
|
|
Expires:
|
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
|
Cache-Control:
|
|
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
|
Pragma:
|
|
- no-cache
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
Vary:
|
|
- Accept-Encoding
|
|
body:
|
|
encoding: UTF-8
|
|
string: '{"response":{"access_token":"CzrGTVXKpiF5_OqWNzL_th-iov0F2C_1fSu-9i8WyKI","expires_in":3600,"token_type":"bearer","scope":"unlimited","refresh_token":"VrxY1vEt3nNxUnIiVPVKqkDtqSqBmozNRrkuRTBNfAc","user":{"profile_image_urls":{"px_16x16":"http:\/\/source.pixiv.net\/common\/images\/no_profile_ss.png","px_50x50":"http:\/\/source.pixiv.net\/common\/images\/no_profile_s.png","px_170x170":"http:\/\/source.pixiv.net\/common\/images\/no_profile.png"},"id":"14613426","name":"SENSITIVE","account":"SENSITIVE","is_premium":false,"x_restrict":2,"is_mail_authorized":true}}}'
|
|
http_version:
|
|
recorded_at: Wed, 28 Sep 2016 16:38:20 GMT
|
|
- request:
|
|
method: get
|
|
uri: https://public-api.secure.pixiv.net/v1/works/32049358.json?image_sizes=large&include_stats=true
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Referer:
|
|
- http://www.pixiv.net
|
|
User-Agent:
|
|
- dior/2.105.0
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
Authorization:
|
|
- Bearer CzrGTVXKpiF5_OqWNzL_th-iov0F2C_1fSu-9i8WyKI
|
|
Accept-Encoding:
|
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
Accept:
|
|
- "*/*"
|
|
response:
|
|
status:
|
|
code: 400
|
|
message: Bad Request
|
|
headers:
|
|
Server:
|
|
- nginx
|
|
Date:
|
|
- Wed, 28 Sep 2016 16:38:21 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '175'
|
|
Connection:
|
|
- keep-alive
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
Vary:
|
|
- Accept-Encoding
|
|
body:
|
|
encoding: ASCII-8BIT
|
|
string: !binary |-
|
|
eyJzdGF0dXMiOiJmYWlsdXJlIiwiaGFzX2Vycm9yIjp0cnVlLCJlcnJvcnMi
|
|
Onsic3lzdGVtIjp7Im1lc3NhZ2UiOiLlr77osaHjga7jgqTjg6njgrnjg4jj
|
|
ga/opovjgaTjgYvjgorjgb7jgZvjgpPjgafjgZfjgZ/jgIIoaWxsdXN0X2lk
|
|
OjMyMDQ5MzU4KSIsImNvZGUiOjIwNn19fQ==
|
|
http_version:
|
|
recorded_at: Wed, 28 Sep 2016 16:38:21 GMT
|
|
recorded_with: VCR 2.9.3
|