Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$wp = new GuzzleHttp\Client();
$request = $wp->get('');
$statusCode = $request->getStatusCode();
if($statusCode >= 200 && $statusCode < 300 ) {
$users = json_decode($request->getBody());
foreach($users as $user) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.