Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.2 kB
3
Indexable
Never
<?php
$client = new Client();
$headers = [
  'Authorization' => 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIzIiwianRpIjoiODM5ZGY1MTJiYmNmMjdiNmZjMDkxZjVkOWExOTVkZTZjODM5OGQ0YTFmMGRhMWQ1NjliYmI1MTM5OTk4NzdhZWUzYzA4ZjM1Mjg0Y2FmNDMiLCJpYXQiOjE2ODgzNjM0MTguNDczMzQ4LCJuYmYiOjE2ODgzNjM0MTguNDczMzUzLCJleHAiOjE3MTk5ODU4MTguNDY2NjIyLCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.hH5wJeEqVixE7C8s6-yo1wmGpVv2O91XLWMGtwHVxeEHA1Yy05r4xGtHnbkP-uEo9vijxwYwdLDWh1z4QjENOlWVEZ-rMcmu8k35NvswvHKRxOOr2DCi1CnnTCx_7S3ZX4BAb2TIWKeKVsSl7LCdMzUMlc16IRUWRAf56LJMeiuvX82RU_JTYZWz0IYXI5bD1pBTs1yWhSh-pJ-tiImnTfvbnT1iIUIqLQ3mO_yXS5GNQxgq3LPouV1JgSDTVjgQEwZOxFEIg19kv2Aq4Ccc2dRk0Nk6a-GuK7VE67mGc336LUA_JWQu9Vs_SZHxtSBrDrbBTLEgPbFRPT4euS__NOXqwy20Ym0M-QN744oGfspX1HW6hVYPHNpR7ANXEiNZEYFRKMPs6-BL87D_yPd_g4MsRq-vK1UaJxXq5jkiKgsGB0w90Sm7RzBTETswOah9StFIghQuySIKMS1OePCJOZo3hvVtY0UsUMw2_-f2_MXhOANdKy2xrAjibJXGTEoh0_gbcJN66YMDvhSca3eG6k5FtSKGdAmywg_v1MNMdgi0saTRPsHsRfrG6gv4t8eUfkqq3ZnJYOBy2Tr7faHGeh6cWo9KktukaMbTwkDkS8H0NAOj1eEbuaPdW34k3W_vu0Yn1cZNbDfEOHEYZC-C28rSRF4yvTFCocuMhmQdkc8'
];
$request = new Request('POST', 'http://127.0.0.1:8000/api/login?email=sales@gmail.com&password=sales@gmail.com', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();