<<

NAME

Client

FUNCTIONS

new($config)

Create a new Client

Parameters

$config

    Config object
get_oauth_client
    Initialize OAuth client
get
    GET request to protected resource

Parameters

$uri

    Resource URL

$params

    Hash of parameters

Return value

    String
post
    POST request to protected resource

Parameters

$uri

    Resource URL

$params

    Hash of parameters

Return value

    String
put
    PUT request to protected resource

Parameters

$uri

    Resource URL

$params

    Hash of parameters

Return value

    String
delete
    DELETE request to protected resource

Parameters

$uri

    Resource URL

$params

    Hash of parameters

Return value

    String
send_request
    Send a signed OAuth request to a specific protected resource

Parameters

$uri

    Resource URI

$method

    Request method

$params

    API parameters

Return value

    String, a response content
format_uri
    Create a path to a specific resource

Parameters

$uri

    URI to the protected resource

$epoint

    Specific epoint

Return value

    String
version
    Get version of native OAuth client

AUTHOR

Maksym Novozhylov <mnovozhilov@upwork.com>

COPYRIGHT

Copyright © Upwork Global Corp., 2015

<<