drapor/networking

There is no license information available for the latest version (1.0.3) of this package.

Make Http Requests

1.0.3 2015-01-16 09:04 UTC

This package is not auto-updated.

Last update: 2021-04-16 22:51:28 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;
     }
  }