GoogleAPIsURLShortener.urlList()

REQUIRED AUTH ! The url.list method retrieves a list of URLs shortened by the authenticated user.

Usage

Hover over inputs/exits for more info.

var GoogleAPIsURLShortener = require('machinepack-googleapisurlshortener');


// REQUIRED AUTH ! The url.list method retrieves a list of URLs shortened by the authenticated user.

GoogleAPIsURLShortener.urlList({

key: 'AIzaSyAYVDlaoVs_GZw9JNvSclRWH_PEMKII6tc',

projection: 'ANALYTICS_CLICKS',

start-token: 'nextPageToken',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Authorization error. Login required.

unauthorized: function () {

 

},

// Invalid field parameter passed

invalidParameter: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

key required

Your API key

'AIzaSyAYVDlaoVs_GZw9JNvSclRWH_PEMKII6tc'
projection

Additional information to return. Supporting only (ANALYTICS_CLICKS | FULL)

'ANALYTICS_CLICKS'
start-token

The index into the paginated list (using the start-token query parameter). To request successive pages of results, set the start-token parameter to the current result's nextPageToken value.

'nextPageToken'

Exits

error

An unexpected error occurred.

unauthorized

Authorization error. Login required.

invalidParameter

Invalid field parameter passed

success

OK.