Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yeraze/CalendarHangout
/ functions
Functions
465 in github.com/Yeraze/CalendarHangout
⨍
Functions
465
◇
Types & classes
139
↓ 55 callers
Method
get
Get deserialized JSON schema from the schema name. Args: name: string, Schema name.
apiclient/schema.py:158
↓ 27 callers
Method
get
(self, key)
httplib2/__init__.py:702
↓ 15 callers
Method
get
Retrieve credential. The Storage lock must *not* be held when this is called. Returns: oauth2client.client.Credentials
oauth2client/client.py:301
↓ 15 callers
Method
update
Update a channel with information from the response of watch(). When a request is sent to watch() a resource, the response returned from the
apiclient/channel.py:211
↓ 11 callers
Method
__init__
If 'cache' is a string then it is used as a directory name for a disk cache. Otherwise it must be an object that supports the same int
httplib2/__init__.py:1139
↓ 10 callers
Method
emitEnd
Add text and comment to the output with line terminator. Args: text: string, Text to output. comment: string, Python comment.
apiclient/schema.py:215
↓ 10 callers
Function
iri2uri
Convert an IRI to a URI. Note that IRIs must be passed in a unicode strings. That is, do not utf-8 encode the IRI before passing it into the f
httplib2/iri2uri.py:65
↓ 8 callers
Function
_abstract
()
oauth2client/client.py:102
↓ 8 callers
Method
request
Performs a single HTTP request. The 'uri' is the URI of the HTTP resource and can begin with either 'http' or 'https'. The value of
httplib2/__init__.py:1387
↓ 8 callers
Method
size
Size of upload. Returns: Size of the body, or None of the size is unknown.
apiclient/http.py:156
↓ 7 callers
Method
__recvall
__recvall(count) -> data Receive EXACTLY the number of bytes requested from the socket. Blocks until the required number of bytes have
httplib2/socks.py:133
↓ 7 callers
Function
_parse_www_authenticate
Returns a dictionary of dictionaries, one dict per auth_scheme.
httplib2/__init__.py:289
↓ 7 callers
Method
read
Read n bytes. Args: n, int, the number of bytes to read. Returns: A string of length 'n', or less if EOF is reached.
apiclient/http.py:593
↓ 7 callers
Method
set_store
Set the Storage for the credential. Args: store: Storage, an implementation of Stroage object. This is needed to store the latest a
oauth2client/client.py:590
↓ 7 callers
Method
to_json
Creating a JSON representation of an instance of Credentials. Returns: string, a JSON representation of this instance, suitable to pass to
oauth2client/client.py:195
↓ 6 callers
Method
file_handle
The file handle to the file. Valid only after opened.
oauth2client/locked_file.py:78
↓ 6 callers
Method
new_from_json
Utility class method to instantiate a Credentials subclass from a JSON representation produced by to_json(). Args: s: string, JSON from
oauth2client/client.py:205
↓ 6 callers
Method
request
(self, uri, method='GET', body=None, headers=None, red
apiclient/http.py:1465
↓ 6 callers
Method
sendall
override socket.socket.sendall method to rewrite the header for non-tunneling proxies if needed
httplib2/socks.py:145
↓ 5 callers
Function
_parse_cache_control
(headers)
httplib2/__init__.py:266
↓ 5 callers
Method
chunksize
Chunk size for resumable uploads. Returns: Chunk size in bytes.
apiclient/http.py:140
↓ 5 callers
Method
connect
Connect to the host and port specified in __init__.
httplib2/__init__.py:864
↓ 5 callers
Method
delete
Delete credential. Frees any resources associated with storing the credential. The Storage lock must *not* be held when this is called.
oauth2client/client.py:329
↓ 5 callers
Method
get
(self)
oauth2client/appengine.py:844
↓ 5 callers
Function
parse_uri
Parses a URI using the regex given in Appendix B of RFC 3986. (scheme, authority, path, query, fragment) = parse_uri(uri)
httplib2/__init__.py:207
↓ 5 callers
Method
put
Write a credential. The Storage lock must be held when this is called. Args: credentials: Credentials, the credentials to store.
oauth2client/client.py:315
↓ 5 callers
Method
step2_exchange
Exhanges a code for OAuth2Credentials. Args: code: string or dict, either the code as a string, or a dictionary of the query parame
oauth2client/client.py:1237
↓ 4 callers
Function
_abstract
()
apiclient/model.py:38
↓ 4 callers
Function
_add_query_parameter
Adds a query parameter to a url. Replaces the current value if it already exists in the URL. Args: url: string, url to add the query paramet
oauth2client/util.py:176
↓ 4 callers
Method
_set_dynamic_attr
Sets an instance attribute and tracks it in a list of dynamic attributes. Args: attr_name: string; The name of the attribute to be set
apiclient/discovery.py:859
↓ 4 callers
Method
acquire_lock
Acquires any lock necessary to access this Storage. This lock is not reentrant.
oauth2client/client.py:259
↓ 4 callers
Method
delete
(self, key)
httplib2/__init__.py:719
↓ 4 callers
Method
emit
Add text as a line to the output. Args: text: string, Text to output.
apiclient/schema.py:199
↓ 4 callers
Method
filename
The filename that is being locked.
oauth2client/locked_file.py:82
↓ 4 callers
Method
release_lock
Release the Storage lock. Trying to release a lock that isn't held will result in a RuntimeError.
oauth2client/client.py:266
↓ 3 callers
Method
__init__
Args: filename: string, absolute filename to read response from headers: dict, header to return with response
apiclient/http.py:1443
↓ 3 callers
Method
__init__
(self)
oauth2client/client.py:109
↓ 3 callers
Function
_cnonce
()
httplib2/__init__.py:450
↓ 3 callers
Method
_conn_request
(self, conn, request_uri, method, body, headers)
httplib2/__init__.py:1248
↓ 3 callers
Method
_create_flow
Create the Flow object. The Flow is calculated lazily since we don't know where this app is running until it receives a request, at which poi
oauth2client/appengine.py:723
↓ 3 callers
Method
_do_revoke
Revokes the credentials and deletes the store if available. Args: http_request: callable, a callable that matches the method signature of
oauth2client/client.py:721
↓ 3 callers
Method
_refresh
Refreshes the access_token. This method first checks by reading the Storage object if available. If a refresh is still needed, it holds the S
oauth2client/client.py:638
↓ 3 callers
Function
_updateCache
(request_headers, response_headers, content, cache, cachekey)
httplib2/__init__.py:413
↓ 3 callers
Function
_urlsafe_b64encode
(raw_bytes)
oauth2client/crypt.py:259
↓ 3 callers
Function
_validate_clientsecrets
(obj)
oauth2client/clientsecrets.py:70
↓ 3 callers
Method
_write
Write the cached data back out. The multistore must be locked.
oauth2client/multistore_file.py:393
↓ 3 callers
Method
add
(self, name, password, domain="")
httplib2/__init__.py:728
↓ 3 callers
Method
authorize
Take an httplib2.Http instance (or equivalent) and authorizes it. Authorizes it for the set of credentials, usually by replacing http.request
oauth2client/client.py:134
↓ 3 callers
Method
emitBegin
Add text to the output, but with no line terminator. Args: text: string, Text to output.
apiclient/schema.py:207
↓ 3 callers
Function
fix_method_name
Fix method names to avoid reserved word conflicts. Args: name: string, method name. Returns: The name with a '_' prefixed if the name is
apiclient/discovery.py:103
↓ 3 callers
Method
getbytes
Get bytes from the media. Args: begin: int, offset from beginning of file. length: int, number of bytes to read, starting at begin.
apiclient/http.py:172
↓ 3 callers
Function
key2param
Converts key names into parameter names. For example, converting "max-results" -> "max_results" Args: key: string, the method key name. R
apiclient/discovery.py:118
↓ 3 callers
Method
locked_put
Write a credential. The Storage lock must be held when this is called. Args: credentials: Credentials, the credentials to store.
oauth2client/client.py:284
↓ 3 callers
Method
mimetype
Mime type of the body. Returns: Mime type.
apiclient/http.py:148
↓ 3 callers
Function
parse_media_range
Parse a media-range into its component parts. Carves up a media range and returns a tuple of the (type, subtype, params) where 'params' is a
apiclient/mimeparse.py:56
↓ 3 callers
Method
set
(self, key, value)
oauth2client/client.py:115
↓ 3 callers
Method
step1_get_authorize_url
Returns a URI to redirect to the provider. Args: redirect_uri: string, Either the string 'urn:ietf:wg:oauth:2.0:oob' for a non-web-
oauth2client/client.py:1207
↓ 3 callers
Function
validate_file
(filename)
oauth2client/locked_file.py:52
↓ 2 callers
Method
__getauthheader
(self)
httplib2/socks.py:176
↓ 2 callers
Method
__init__
(self, resp, content, uri=None)
apiclient/errors.py:39
↓ 2 callers
Method
__init__
Constructor for OAuth2Decorator Args: client_id: string, client identifier. client_secret: string client secret. scope: string
oauth2client/appengine.py:606
↓ 2 callers
Method
__init__
Constructor for Storage. Args: model: db.Model, model class key_name: string, key name for the entity that has the credentials
oauth2client/django_orm.py:89
↓ 2 callers
Method
__negotiatehttp
__negotiatehttp(self,destaddr,destport) Negotiates a connection through an HTTP server.
httplib2/socks.py:358
↓ 2 callers
Function
_build_state_value
Composes the value for the 'state' parameter. Packs the current request URI and an XSRF token into an opaque string that can be passed to the aut
oauth2client/appengine.py:508
↓ 2 callers
Function
_cast
Convert value to a string based on JSON Schema type. See http://tools.ietf.org/html/draft-zyp-json-schema-03 for more details on JSON Schema.
apiclient/discovery.py:260
↓ 2 callers
Method
_display_error_message
(self, request_handler)
oauth2client/appengine.py:675
↓ 2 callers
Method
_do_refresh_request
Refresh the access_token using the refresh_token. Args: http_request: callable, a callable that matches the method signature of htt
oauth2client/client.py:667
↓ 2 callers
Method
_execute
Serialize batch request, send to server, process response. Args: http: httplib2.Http, an http object to be used to make the request with.
apiclient/http.py:1203
↓ 2 callers
Function
_get_end2end_headers
(response)
httplib2/__init__.py:200
↓ 2 callers
Function
_get_multistore
A helper method to initialize the multistore with proper locking. Args: filename: The JSON file storing a set of credentials warn_on_readon
oauth2client/multistore_file.py:167
↓ 2 callers
Method
_get_reason
Calculate the reason for the error from the response content.
apiclient/errors.py:44
↓ 2 callers
Method
_is_ndb
Determine whether the model of the instance is an NDB model. Returns: Boolean indicating whether or not the model is an NDB or DB model.
oauth2client/appengine.py:395
↓ 2 callers
Function
_json_encode
(data)
oauth2client/crypt.py:270
↓ 2 callers
Function
_loadfile
(filename)
oauth2client/clientsecrets.py:99
↓ 2 callers
Method
_lock
Lock the entire multistore.
oauth2client/multistore_file.py:280
↓ 2 callers
Method
_posix_lockfile
The name of the lock file to use for posix locking.
oauth2client/locked_file.py:164
↓ 2 callers
Method
_process_response
Process the response from a single chunk upload. Args: resp: httplib2.Response, the response object. content: string, the content of
apiclient/http.py:876
↓ 2 callers
Method
_request
Do the actual request using the connection object and also follow one level of redirects if necessary
httplib2/__init__.py:1308
↓ 2 callers
Function
_safe_html
Escape text to make it safe to display. Args: s: string, The text to escape. Returns: The escaped text as a string.
oauth2client/appengine.py:67
↓ 2 callers
Method
_set_service_methods
(self)
apiclient/discovery.py:891
↓ 2 callers
Method
_to_json
Utility function for creating a JSON representation of a MediaUpload. Args: strip: array, An array of names of members to not include in th
apiclient/http.py:207
↓ 2 callers
Method
_to_json
Utility function that creates JSON repr. of a Credentials object. Args: strip: array, An array of names of members to not include in the JS
oauth2client/client.py:173
↓ 2 callers
Method
_unlock
Release the lock on the multistore.
oauth2client/multistore_file.py:303
↓ 2 callers
Function
_update_query_params
Updates a URI with new query parameters. Args: uri: string, A valid URI, with potential existing query parameters. params: dict, A dictiona
oauth2client/client.py:367
↓ 2 callers
Function
_urlsafe_b64decode
(b64string)
oauth2client/crypt.py:263
↓ 2 callers
Method
_validate_file
(self)
oauth2client/file.py:43
↓ 2 callers
Method
add
Add a new request. Every callback added will be paired with a unique id, the request_id. That unique id will be passed back to the callback w
apiclient/http.py:1165
↓ 2 callers
Method
apply
Add the authorization to the headers. Args: headers: dict, the headers to add the Authorization header to.
oauth2client/client.py:165
↓ 2 callers
Method
apply
Add the authorization to the headers. Args: headers: dict, the headers to add the Authorization header to.
oauth2client/client.py:527
↓ 2 callers
Method
astuple
(self)
httplib2/__init__.py:766
↓ 2 callers
Method
authorize_url
Returns the URL to start the OAuth dance. Must only be called from with a webapp.RequestHandler subclassed method that had been decorated wit
oauth2client/appengine.py:792
↓ 2 callers
Function
clean_headers
Forces header keys and values to be strings, i.e not unicode. The httplib module just concats the header keys and values in a way that may make t
oauth2client/client.py:345
↓ 2 callers
Function
createMethod
Creates a method for attaching to a Resource. Args: methodName: string, name of the method to use. methodDesc: object, fragment of deserial
apiclient/discovery.py:552
↓ 2 callers
Function
fitness_and_quality_parsed
Find the best match for a mime-type amongst parsed media-ranges. Find the best match for a given mime-type against a list of media_ranges tha
apiclient/mimeparse.py:79
↓ 2 callers
Method
from_string
Construct a Signer instance from a string. Args: key: string, private key in PKCS12 or PEM format. password: string, password f
oauth2client/crypt.py:115
↓ 2 callers
Function
get_credential_storage_custom_key
Get a Storage instance for a credential using a dictionary as a key. Allows you to provide a dictionary as a custom key that will be used for cre
oauth2client/multistore_file.py:122
↓ 2 callers
Function
has_timeout
(timeout)
httplib2/__init__.py:100
↓ 2 callers
Method
indent
Increase indentation level.
apiclient/schema.py:231
↓ 2 callers
Method
is_locked
Was the file locked.
oauth2client/locked_file.py:74
↓ 2 callers
Method
isgood
(self)
httplib2/__init__.py:770
next →
1–100 of 465, ranked by callers