handa-gdata-0.7.0.3: Library and command-line utility for accessing Google services and APIs.

Safe HaskellNone
LanguageHaskell98

Network.Google

Contents

Description

Helper functions for accessing Google APIs.

Synopsis

Types

type AccessToken = ByteString Source

OAuth 2.0 access token.

toAccessToken Source

Arguments

:: String

The string.

-> AccessToken

The OAuth 2.0 access token.

Convert a string to an access token.

Functions

appendBody Source

Arguments

:: ByteString

The data for the body.

-> Request

The request.

-> Request

The request with the body appended.

Append a body to a request.

appendHeaders Source

Arguments

:: [(String, String)]

The (name/key, value) pairs for the headers.

-> Request

The request.

-> Request

The request with the additional headers.

Append headers to a request.

appendQuery Source

Arguments

:: [(String, String)]

The query keys and values.

-> Request

The request.

-> Request

The request with the query appended.

Append a query to a request.

doManagedRequest Source

Arguments

:: DoRequest a 
=> Manager

The conduit HTTP manager.

-> Request

The request.

-> IO a

The action returning the result of performing the request.

doRequest Source

Arguments

:: DoRequest a 
=> Request

The request.

-> IO a

The action returning the result of performing the request.

Perform a request.

makeHeaderName Source

Arguments

:: String

The name.

-> CI ByteString

The prepared name. TODO: In principle, we should UTF-8 encode the bytestrings packed below.

Prepare a name/key for a header.

makeProjectRequest Source

Arguments

:: ProjectId

The project ID.

-> AccessToken

The OAuth 2.0 access token.

-> (String, String)

The Google API name and version.

-> String

The HTTP method.

-> (String, String)

The host and path for the request.

-> Request

The HTTP request.

Construct a project-related Google API request.

makeRequest Source

Arguments

:: AccessToken

The OAuth 2.0 access token.

-> (String, String)

The Google API name and version.

-> String

The HTTP method.

-> (String, String)

The host and path for the request.

-> Request

The HTTP request.

Construct a Google API request.

makeRequestValue Source

Arguments

:: String

The string.

-> ByteString

The prepared string. TODO: In principle, we should UTF-8 encode the bytestrings packed below.

Prepare a string for inclusion in a request.