Auth0\SDK\API\Helpers\RequestBuilder::getUrl PHP Method

getUrl() public method

public getUrl ( )
    public function getUrl()
    {
        return trim(implode('/', $this->path), '/') . $this->getParams();
    }

Usage Example

 public function testFullUrl()
 {
     $builder = new RequestBuilder(['domain' => 'www.domain.com', 'method' => 'get']);
     $builder->path(2)->subpath()->withParams([['key' => 'param1', 'value' => 'value1'], ['key' => 'param2', 'value' => 'value2']]);
     $this->assertEquals('www.domain.com/path/2/subpath?param1=value1&param2=value2', $builder->getUrl());
 }