Open sidebar
$client = new \GuzzleHttp\Client(); $client->getEmitter()->attach(new Namshi\Guzzle\Subscriber\CurlFormatter()); try { $request = $client->post(config('exchange.api.url'), [ 'auth'=>[config('exchange.api.login'), config('exchange.api.password')], 'headers'=>['token'=>config('exchange.api.token'), 'Change-status'=>'true'], 'body'=>json_encode(['status_id'=>$status->external_code]), ]); } catch (\Exception $exception) { dd($exception->getMessage()); }
Close sidebar
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting