· 7 years ago · Mar 15, 2018, 11:42 AM
1Autoryzacja:
2
3GET /oauth/authorization?client_id=MobileIOS_PlayerFL_060cb65fc6ab4285&redirect_uri=http://player.pl&response_type=code&scope=/pub-api/bylaw/get-my-not-accepted-service-bylaws%20/pub-api/user/me%20/pub-api/bylaw/set-my-bylaws HTTP/1.1
4Host: konto.tvn.pl
5Accept-Encoding: gzip, deflate
6Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
7Cookie: TVNSSOSID=fhp3u98q4k4t75oe65r86skqo7
8Connection: close
9Accept-Language: pl-pl
10User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60
11
12
13GET /zaloguj,player-webview.html?oauth=1&redirect_uri=http%3A%2F%2Fplayer.pl&client_id=MobileIOS_PlayerFL_060cb65fc6ab4285&response_type=code&scope=%2Fpub-api%2Fbylaw%2Fget-my-not-accepted-service-bylaws%20%2Fpub-api%2Fuser%2Fme%20%2Fpub-api%2Fbylaw%2Fset-my-bylaws&back_url=&state=8895f880f7876e9fba9b73eee96526c0f0400f8649922d835fc7c0bc801346fd180b361e1500fa58f5c9cd678b5c9454177fd163354bbfa5376581af7daef9f4&service_id=24&portalhash=ccde4ea49c1018f36588bf0ecb78ab98&version=2.0.0&oauth_mobile=1&oauth_params_hash=05e3d0cb6d116f3dc8a27604901dd7f0 HTTP/1.1
14Host: konto.tvn.pl
15Accept-Encoding: gzip, deflate
16Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
17Cookie: TVNSSOSID=fhp3u98q4k4t75oe65r86skqo7
18Connection: close
19Accept-Language: pl-pl
20User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60
21
22
23
24Logowanie:
25
26POST /oauth/authorization?oauth=1&redirect_uri=http%3A%2F%2Fplayer.pl&client_id=MobileIOS_PlayerFL_060cb65fc6ab4285&response_type=code&scope=%2Fpub-api%2Fbylaw%2Fget-my-not-accepted-service-bylaws+%2Fpub-api%2Fuser%2Fme+%2Fpub-api%2Fbylaw%2Fset-my-bylaws&back_url=&state=8895f880f7876e9fba9b73eee96526c0f0400f8649922d835fc7c0bc801346fd180b361e1500fa58f5c9cd678b5c9454177fd163354bbfa5376581af7daef9f4&service_id=24&portalhash=ccde4ea49c1018f36588bf0ecb78ab98&version=2.0.0&oauth_mobile=1&oauth_params_hash=05e3d0cb6d116f3dc8a27604901dd7f0 HTTP/1.1
27Host: konto.tvn.pl
28Referer: https://konto.tvn.pl/zaloguj,player-webview.html?oauth=1&redirect_uri=http%3A%2F%2Fplayer.pl&client_id=MobileIOS_PlayerFL_060cb65fc6ab4285&response_type=code&scope=%2Fpub-api%2Fbylaw%2Fget-my-not-accepted-service-bylaws+%2Fpub-api%2Fuser%2Fme+%2Fpub-api%2Fbylaw%2Fset-my-bylaws&back_url=&state=8895f880f7876e9fba9b73eee96526c0f0400f8649922d835fc7c0bc801346fd180b361e1500fa58f5c9cd678b5c9454177fd163354bbfa5376581af7daef9f4&service_id=24&portalhash=ccde4ea49c1018f36588bf0ecb78ab98&version=2.0.0&oauth_mobile=1&oauth_params_hash=05e3d0cb6d116f3dc8a27604901dd7f0
29Content-Type: application/x-www-form-urlencoded
30Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
31Accept-Language: pl-pl
32Accept-Encoding: gzip, deflate
33Origin: https://konto.tvn.pl
34Cookie: TVNSSOSID=fhp3u98q4k4t75oe65r86skqo7; sso_oauth_cookie=user_id%3D8366391%26session_id%3D24a9d38a2108724b6bdab7210b648960cf8300a6701f6f256d690a93863fef29%26hash%3D7b4c0afb07d725ee0bf347cfcdde51d2b1ebae46
35Content-Length: 26
36Connection: close
37User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60
38
39decision=1&user_id=8366391
40
41
42POST /oauth/token HTTP/1.1
43Host: konto.tvn.pl
44Accept-Encoding: gzip, deflate
45Content-Type: application/x-www-form-urlencoded; charset=utf-8
46Content-Length: 200
47Accept-Language: pl-pl
48Accept: */*
49Connection: close
50User-Agent: player+%20UAT/49 CFNetwork/811.5.4 Darwin/16.7.0
51
52grant_type=authorization_code&code=c1b5e585-75c5-4b94-b06f-1dbbd0a95b1d&client_id=MobileIOS_PlayerFL_060cb65fc6ab4285&client_secret=22bfa806a485179b1eb49cc8da8a6425&redirect_uri=http%3A%2F%2Fplayer.pl
53
54HTTP/1.1 200 OK
55Server: nginx
56Date: Thu, 15 Mar 2018 11:38:51 GMT
57Content-Type: application/json; charset=utf-8
58Content-Length: 150
59Connection: close
60Alternate-Protocol: 443:npn-spdy/2
61X-Content-Type-Options: nosniff
62X-XSS-Protection: 1; mode=block
63Strict-Transport-Security: max-age=31536000; preload
64
65{"token_type":"bearer","access_token":"540ce8ed-2931-4019-9c71-e9226e2588ec","expires_in":3600,"refresh_token":"426bb6a4-2d4c-4c86-978b-e7730db2e792"}
66
67
68GET /pub-api/user/me?userIp=127.0.0.1&options%5BcheckIfBylawsAccsepted%5D=1 HTTP/1.1
69Host: konto.tvn.pl
70Authorization: Bearer 540ce8ed-2931-4019-9c71-e9226e2588ec
71Content-Type: application/json
72API-DeviceInfo: iPhone;5;ios;10.3.3;apple;5.0.26;
73Accept-Language: pl-pl
74Accept: */*
75API-DeviceUid: CD8ECCAE-CBD5-485E-9DA4-C06277901DF3
76Accept-Encoding: gzip, deflate
77Cookie: TVNSSOSID=fhp3u98q4k4t75oe65r86skqo7; sso_oauth_cookie=user_id%3D8366391%26session_id%3D24a9d38a2108724b6bdab7210b648960cf8300a6701f6f256d690a93863fef29%26hash%3D7b4c0afb07d725ee0bf347cfcdde51d2b1ebae46
78Connection: close
79User-Agent: player+%20UAT/49 CFNetwork/811.5.4 Darwin/16.7.0
80
81HTTP/1.1 200 OK
82Server: nginx
83Date: Thu, 15 Mar 2018 11:38:53 GMT
84Content-Type: application/json; charset=utf-8
85Content-Length: 686
86Connection: close
87Alternate-Protocol: 443:npn-spdy/2
88X-Content-Type-Options: nosniff
89X-XSS-Protection: 1; mode=block
90Strict-Transport-Security: max-age=31536000; preload
91
92{"id":8366391,"status":"active","siloId":0,"login":"maciej.rozanski+bezzgod1@atendesoftware.pl","nick":"Maciejhnf0","firstName":"Maciej","lastName":"","createDate":"2018-03-05 15:12:53","confirmedTime":"2018-03-05 15:13:50","loginTime":"2018-03-15 12:38:47","avatar":null,"previousLoginTime":"2018-03-15 12:16:02","logoutTime":null,"registerType":"konto","registerServiceId":24,"description":null,"sex":null,"birthDate":null,"changePasswordRequired":false,"externalId":5323641,"facebookId":null,"googlePlusId":null,"homeAddress":null,"ims":[],"phones":[],"samsungId":null,"twitterId":null,"avatar50":null,"avatar100":null,"avatar200":null,"statsHash":"aaf9597006ff6ba9e3401d4d6b608fcd"}