drapor / networking
There is no license information available for the latest version (1.0.3) of this package.
Make Http Requests
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.0.3
2015-01-16 09:04 UTC
Requires
- php: >=5.4.0
- filp/whoops: 1.1.*
- guzzlehttp/guzzle: 4.1.7
- illuminate/config: 4.2.*
- illuminate/container: 4.2.*
- illuminate/database: 4.2.*
- illuminate/encryption: 4.2.*
- illuminate/events: 4.2.*
- illuminate/filesystem: 4.2.*
- illuminate/mail: 4.2.*
- illuminate/queue: 4.2.*
- illuminate/routing: 4.2.*
- illuminate/session: 4.2.*
- illuminate/support: 4.2.*
- illuminate/translation: 4.2.*
- slim/slim: 2.*
- zeuxisoo/slim-whoops: 0.2.0
This package is not auto-updated.
Last update: 2024-04-13 15:01:08 UTC
README
use Drapor\Networking\Networking;
class FooService extends Networking{
public $baseUrl = "https://api.foo.com/v1";
public $headers = ["authorization" => "foo:bar"];
public function getBar($id, $active){
$endpoint = "/users/{$id}";
$type = "get";
$res = $this->send(['active' => $active],$endpoint,$type);
return $res;
}
}