Laracord provides out of the box support for Laravel's expressive HTTP client based on Guzzle. This allows an extremely easy way to handle making API requests from your bot.
Note
For advanced usage, we strongly suggest referring to the official HTTP Client Laravel documentation.
Basic usage of the HTTP client can be done using the get()
and post()
methods on the Http
facade:
<?php
use Illuminate\Support\Facades\Http;
$body = Http::get($url);
$post = Http::post($url, $data = []);