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

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;
     }
  }