%3 ::xotcl::Object ::xotcl::Object ::xo::oauth::Signature ::xo::oauth::Signature → base_string_from_url encode ::xo::oauth::Signature->::xotcl::Object

Class ::xo::oauth::Signature

::xo::oauth::Signature[i] create ... \
           [ -base_string_uri base_string_uri ] \
           [ -client_secret client_secret ] \
           [ -request_method (default "POST") ] \
           [ -signature_parameters signature_parameters ] \
           [ -token_secret (default "") ]

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xotcl::Object[i]
::xotcl::Class create ::xo::oauth::Signature \
     -superclass ::xotcl::Object

Methods (to be applied on the object)

  • base_string_from_url (scripted, public)

     xo::oauth::Signature[i] base_string_from_url uri

    This procedure transforms a given URL into a format that is conformant to "http://tools.ietf.org/html/rfc5849#section-3.4.1.2". Most importantly, it strips any query part from the URL.

    Parameters:
    uri (required)

    Testcases:
    No testcase defined.
    set info [uri::split $uri]
    set base_string_uri [uri::join  scheme [dict get $info scheme]  host [dict get $info host]  port [dict get $info port]  path [dict get $info path]]
    return $base_string_uri

Methods (to be applied on instances)

Variables

::xo::oauth::Signature set __default_metaclass ::xotcl::Class
::xo::oauth::Signature set __default_superclass ::xotcl::Object