<?php require 'vendor/autoload.php'; use Guzzle\Http\Client; $settings = parse_ini_file('config/settings.ini'); $client = new Client($settings['base_url']); $client->setDefaultOption('headers', array( 'Content-Type' => 'application/json', 'Authorization' => "Bearer ${settings['token']}", ) ); # get $response = $client->get( $settings['api_path'], null # header ã ããsetDefaultOptionã§æ¢ã«è¨å®ãã¦ããã )->send
{{#tags}}- {{label}}
{{/tags}}