There’s a withToken
method to attach the Authorization
header to a request.
1// Booo!2Http::withHreader([3 'Authorization' => 'Bearer dQw4w9WgXcq'4])5 6// YES!7Http::withToken('dQw4w9WgXcq');
Tip given by @p3ym4n
There’s a withToken
method to attach the Authorization
header to a request.
1// Booo!2Http::withHreader([3 'Authorization' => 'Bearer dQw4w9WgXcq'4])5 6// YES!7Http::withToken('dQw4w9WgXcq');
Tip given by @p3ym4n