You are here

public function BynderMediaApi::genericRequest in Bynder 7

File

includes/BynderMediaApi.inc, line 235
Manages the Bynder media browser functionality

Class

BynderMediaApi

Code

public function genericRequest($url, $options = null) {
  $client = new Client([
    'allow_redirects' => false,
  ]);
  return $client
    ->requestAsync('GET', $url)
    ->wait();
}