dotfiles/node_modules/googleclientlogin/package.json

36 lines
9.2 KiB
JSON
Raw Normal View History

2012-11-19 00:37:32 +01:00
{
"name": "googleclientlogin",
"description": "Log in to Google services using CllientLogin method",
"url": "https://github.com/Ajnasz/GoogleClientLogin",
"keywords": [
"google",
"service",
"authentication",
"api",
"clientlogin"
],
"repository": {
"type": "git",
"url": "git://github.com/Ajnasz/GoogleClientLogin.git"
},
"bugs": {
"url": "https://github.com/Ajnasz/GoogleClientLogin/issues"
},
"engines": {
"node": ">=0.4.1"
},
"author": {
"name": "Lajos Koszti",
"email": "ajnasz@ajnasz.hu",
"url": "http://ajnasz.hu"
},
"version": "0.2.4",
"readme": "Google's ClientLogin authentication implementation for Node.js\n\nRequires at least nodejs 0.4.1\n\nProperties:\n errors: That is an object, filled with the possible error messages.\n accountTypes: An object, where you can set the type of account to request authorization for.\n properties are: google, hosted, hostedOrGoogle\n default is hostedOrGoogle\n\nEvents:\n login: emitted when login was success\n error: emitted when an error occured. Has two parameters, the response object and the received data\n You can access to their names via constants: GoogleClientLogin.events.login or GoogleClientLogin.events.error\n or you can use 'login' and 'error' as string.\n\nMethods:\n login\n Starts the login process. It has one optional parameter, which should be an object with two properties:\n logincaptcha, logintoken.\n The logincaptcha is the user's answer to the captcha question\n You will receive the logintoken if the login failed and the CaptchaRequired error code arrived\n You must pass both the logincaptcha and logintoken if you must pass a captcha challange\n\n getAuthId\n Returns the value of the authId key from the response. If the login was success you will need to use this value to perform additional requests. You must put it into a the Authorization header like this:\n 'Authorization': 'GoogleLogin auth=' + googleAuth.getAuthId(),\n\n getSID\n Returns the value of SID key from the response.\n\n getLSID\n Returns the value of LSID key from the response.\n\n isCaptchaRequired\n If the login was not success and the user need to pass a captcha challenge this method will return true\n\n getCaptchaUrl\n Url of the captcha image\n\n getCaptchaToken\n You will need to pass it back to the google with the user's answer to the captcha if the login failed and captcha authentication required.\n\n getError\n If the login was not success, google will send back an error code what you can get with this method\n\n\nAfter the login was success, you should use the AuthId in each of your requests, see example below\n\nhttp://code.google.com/apis/gdata/faq.html#clientlogin\nlist of services:\n\n\nName |name in googleclientlogin module |value\n-----------------------------------------------------|-------------------------------------|---------------\nGoogle Adwords APIs: |adwords: |'adwords'\n-----------------------------------------------------|-------------------------------------|---------------\nGoogle Analytics Data APIs: |analytics: |'analytics'\n-----------------------------------------------------|-------------------------------------|---------------\nGoogle Apps APIs (Domain Information & Management): |apps: |'apps'\n-----------------------------------------------------|-------------------------------------|---------------\nGoogle Base Data API: |base: |'gbase'\n-----------------------------------------------------|-------------------------------------|---------------\nGoogle Sites Data API: |sites: |'jotspot'\n-----------------------------------------------------|-------------------------------------|---------------\nBlogger Data API: |blogger: |'blogger'\n-----------------------------------------------------|-------------------------------------|---------------\nBook Search Data API: |book: |'print'\n-----------------------------------------------------|-------------------------------------|---------------\nCalendar Data API: |calendar: |'cl'\n-----------------------------------------------------|-------------------------------------|---------------\nGoogle
"readmeFilename": "README",
"_id": "googleclientlogin@0.2.4",
"dist": {
"shasum": "4e552c0bfef0859171b6edc2603eaf3afc6c1a61"
},
"_from": "googleclientlogin"
}