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. Email us for help if needed.

Maintainers

Package info

github.com/mikenolimits/Networking

pkg:composer/drapor/networking

Statistics

Installs: 1 263

Dependents: 1

Suggesters: 0

Stars: 2

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