sig
module Error :
sig
type t =
BadAuthentication
| NotVerified
| TermsNotAgreed
| CaptchaRequired
| Unknown
| AccountDeleted
| AccountDisabled
| ServiceDisabled
| ServiceUnavailable
| GenericError of string
val of_string : string -> GapiClientLogin.Error.t
val description : GapiClientLogin.Error.t -> string
end
module Service :
sig
type t =
GoogleAnalytics
| GoogleApps
| GoogleBase
| GoogleSites
| Blogger
| BookSearch
| Calendar
| GoogleCodeSearch
| Contacts
| DocumentsList
| Finance
| Gmail
| Health
| HealthSandbox
| Maps
| Picasa
| Sidewiki
| Spreadsheets
| WebmasterTools
| YouTube
| OtherService of string
val string_of : GapiClientLogin.Service.t -> string
end
exception LoginException of GapiClientLogin.Error.t
val get_auth_token :
?account_type:string ->
?url:string ->
email:string ->
password:string ->
source:string ->
service:GapiClientLogin.Service.t ->
GapiConversation.Session.t ->
GapiAuthResponse.t * GapiConversation.Session.t
end