MythTV  master
Classes | Functions | Variables
nv_python_libs.vimeo.oauth.oauth_api Namespace Reference

Classes

class  OAuthClient
 
class  OAuthConsumer
 
class  OAuthDataStore
 
class  OAuthError
 
class  OAuthRequest
 
class  OAuthServer
 
class  OAuthSignatureMethod
 
class  OAuthSignatureMethod_HMAC_SHA1
 
class  OAuthSignatureMethod_PLAINTEXT
 
class  OAuthToken
 

Functions

def build_authenticate_header (realm='')
 
def escape (s)
 
def _utf8_str (s)
 
def generate_timestamp ()
 
def generate_nonce (length=8)
 
def generate_verifier (length=8)
 

Variables

string VERSION = '1.0'
 
string HTTP_METHOD = 'GET'
 
string SIGNATURE_METHOD = 'PLAINTEXT'
 

Detailed Description

The MIT License

Copyright (c) 2007 Leah Culver

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Function Documentation

◆ build_authenticate_header()

def nv_python_libs.vimeo.oauth.oauth_api.build_authenticate_header (   realm = '')
Optional WWW-Authenticate header (401 error)

Definition at line 43 of file oauth_api.py.

◆ escape()

def nv_python_libs.vimeo.oauth.oauth_api.escape (   s)

◆ _utf8_str()

def nv_python_libs.vimeo.oauth.oauth_api._utf8_str (   s)
private
Convert unicode to utf-8.

Definition at line 51 of file oauth_api.py.

Referenced by nv_python_libs.vimeo.oauth.oauth_api.OAuthRequest.get_normalized_parameters().

◆ generate_timestamp()

def nv_python_libs.vimeo.oauth.oauth_api.generate_timestamp ( )
Get seconds since epoch (UTC).

Definition at line 58 of file oauth_api.py.

Referenced by nv_python_libs.vimeo.oauth.oauth_api.OAuthRequest.from_consumer_and_token().

◆ generate_nonce()

def nv_python_libs.vimeo.oauth.oauth_api.generate_nonce (   length = 8)
Generate pseudorandom number.

Definition at line 62 of file oauth_api.py.

Referenced by nv_python_libs.vimeo.oauth.oauth_api.OAuthRequest.from_consumer_and_token().

◆ generate_verifier()

def nv_python_libs.vimeo.oauth.oauth_api.generate_verifier (   length = 8)
Generate pseudorandom number.

Definition at line 66 of file oauth_api.py.

Referenced by nv_python_libs.vimeo.oauth.oauth_api.OAuthToken.set_verifier().

Variable Documentation

◆ VERSION

string nv_python_libs.vimeo.oauth.oauth_api.VERSION = '1.0'

Definition at line 33 of file oauth_api.py.

◆ HTTP_METHOD

string nv_python_libs.vimeo.oauth.oauth_api.HTTP_METHOD = 'GET'

Definition at line 34 of file oauth_api.py.

◆ SIGNATURE_METHOD

string nv_python_libs.vimeo.oauth.oauth_api.SIGNATURE_METHOD = 'PLAINTEXT'

Definition at line 35 of file oauth_api.py.