Skip to content
Permalink
Browse files

Fix issue #8

Set GapiConfig.auth field in all the examples
  • Loading branch information...
astrada committed Sep 3, 2012
1 parent 1572d41 commit bebe3d7644e29c48d94b1261f216bbd2dd71d353
@@ -16,14 +16,17 @@ open GapiAnalyticsV3Service

let application_name = "YOUR_APPLICATION_NAME"

let configuration = GapiConfig.default
|> GapiConfig.application_name ^= application_name

(* The clientId and clientSecret are copied from the API Access tab on
* the Google APIs Console *)
let client_id = "YOUR_CLIENT_ID"
let client_secret = "YOUR_CLIENT_SECRET"

let configuration = GapiConfig.default
|> GapiConfig.application_name ^= application_name
|> GapiConfig.auth ^= GapiConfig.OAuth2
{ GapiConfig.client_id;
client_secret }

(* Or your redirect URL for web based applications. *)
let redirect_uri = "urn:ietf:wg:oauth:2.0:oob"
let scope = [GapiAnalyticsV3Service.scope_readonly]
@@ -13,15 +13,18 @@ open GapiAnalyticsV3Service

let application_name = "YOUR_APPLICATION_NAME"

let configuration =
{ GapiConfig.default with
GapiConfig.application_name = application_name }

(* The clientId and clientSecret are copied from the API Access tab on
* the Google APIs Console *)
let client_id = "YOUR_CLIENT_ID"
let client_secret = "YOUR_CLIENT_SECRET"

let configuration =
{ GapiConfig.default with
GapiConfig.application_name = application_name;
GapiConfig.auth = GapiConfig.OAuth2
{ GapiConfig.client_id;
client_secret } }

(* Or your redirect URL for web based applications. *)
let redirect_uri = "urn:ietf:wg:oauth:2.0:oob"
let scope = [GapiAnalyticsV3Service.scope_readonly]
@@ -15,14 +15,17 @@ open GapiCalendarV3Service

let application_name = "YOUR_APPLICATION_NAME"

let configuration = GapiConfig.default
|> GapiConfig.application_name ^= application_name

(* The clientId and clientSecret are copied from the API Access tab on
* the Google APIs Console *)
let client_id = "YOUR_CLIENT_ID"
let client_secret = "YOUR_CLIENT_SECRET"

let configuration = GapiConfig.default
|> GapiConfig.application_name ^= application_name
|> GapiConfig.auth ^= GapiConfig.OAuth2
{ GapiConfig.client_id;
client_secret }

(* Or your redirect URL for web based applications. *)
let redirect_uri = "urn:ietf:wg:oauth:2.0:oob"
let scope = [GapiCalendarV3Service.scope]
@@ -11,15 +11,18 @@ open GapiCalendarV3Service

let application_name = "YOUR_APPLICATION_NAME"

let configuration =
{ GapiConfig.default with
GapiConfig.application_name = application_name }

(* The clientId and clientSecret are copied from the API Access tab on
* the Google APIs Console *)
let client_id = "YOUR_CLIENT_ID"
let client_secret = "YOUR_CLIENT_SECRET"

let configuration =
{ GapiConfig.default with
GapiConfig.application_name = application_name;
GapiConfig.auth = GapiConfig.OAuth2
{ GapiConfig.client_id;
client_secret } }

(* Or your redirect URL for web based applications. *)
let redirect_uri = "urn:ietf:wg:oauth:2.0:oob"
let scope = [GapiCalendarV3Service.scope]
@@ -15,14 +15,17 @@ open GapiTasksV1Service

let application_name = "YOUR_APPLICATION_NAME"

let configuration = GapiConfig.default
|> GapiConfig.application_name ^= application_name

(* The clientId and clientSecret are copied from the API Access tab on
* the Google APIs Console *)
let client_id = "YOUR_CLIENT_ID"
let client_secret = "YOUR_CLIENT_SECRET"

let configuration = GapiConfig.default
|> GapiConfig.application_name ^= application_name
|> GapiConfig.auth ^= GapiConfig.OAuth2
{ GapiConfig.client_id;
client_secret }

(* Or your redirect URL for web based applications. *)
let redirect_uri = "urn:ietf:wg:oauth:2.0:oob"
let scope = [GapiTasksV1Service.scope]
@@ -11,15 +11,18 @@ open GapiTasksV1Service

let application_name = "YOUR_APPLICATION_NAME"

let configuration =
{ GapiConfig.default with
GapiConfig.application_name = application_name }

(* The clientId and clientSecret are copied from the API Access tab on
* the Google APIs Console *)
let client_id = "YOUR_CLIENT_ID"
let client_secret = "YOUR_CLIENT_SECRET"

let configuration =
{ GapiConfig.default with
GapiConfig.application_name = application_name;
GapiConfig.auth = GapiConfig.OAuth2
{ GapiConfig.client_id;
client_secret } }

(* Or your redirect URL for web based applications. *)
let redirect_uri = "urn:ietf:wg:oauth:2.0:oob"
let scope = [GapiTasksV1Service.scope]

0 comments on commit bebe3d7

Please sign in to comment.
You can’t perform that action at this time.