drapor/networking

该软件包最新版本(1.0.3)没有提供许可信息。

发送Http请求

该软件包的官方仓库似乎已不存在,因此该软件包已被冻结。

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