1.0.0 • Published 9 years ago

vmoso-user-api v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
9 years ago

vmoso-user-api

VmosoUserApi - JavaScript client for vmoso-user-api Description about User API This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build date: 2016-06-22T11:43:55.693Z
  • Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install vmoso-user-api --save

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/vmoso-user-api then install it via:

    npm install YOUR_USERNAME/vmoso-user-api --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var VmosoUserApi = require('vmoso-user-api');

var defaultClient = VmosoUserApi.ApiClient.default;

// Configure API key authorization: vmoso_auth
var vmoso_auth = defaultClient.authentications['vmoso_auth'];
vmoso_auth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//vmoso_auth.apiKeyPrefix['X-CV-Authorization'] = "Token"

var api = new VmosoUserApi.UserApi()

var index = "index_example"; // {String} From {@link SessionInfoRecord::$index}.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteSession(index, callback);

Documentation for API Endpoints

All URIs are relative to https://www.vmoso.com/svc

ClassMethodHTTP requestDescription
VmosoUserApi.UserApideleteSessionDELETE /sessions/{index}
VmosoUserApi.UserApigetFollowCountsGET /followingAndFollowedUsers/counts
VmosoUserApi.UserApigetInvitationsGET /invitations
VmosoUserApi.UserApigetLandingPageGET /landingPage
VmosoUserApi.UserApigetMeGET /users/me
VmosoUserApi.UserApigetMeMwaGET /users/me/mwa
VmosoUserApi.UserApigetRequestAndPendingUsersCountsGET /requestandpendingusers/counts
VmosoUserApi.UserApigetSessionsGET /sessions
VmosoUserApi.UserApigetSuggestFollowersCountsGET /suggestfollowers/counts
VmosoUserApi.UserApigetSuggestedUsersCountsGET /suggestusers/counts
VmosoUserApi.UserApigetUserGET /users/{userKey}
VmosoUserApi.UserApigetUserByEmailGET /users/lookupByEmail/{userName}
VmosoUserApi.UserApigetUserStatusPOST /users/status
VmosoUserApi.UserApigetUsersGET /users/lookup
VmosoUserApi.UserApigetUsersByEmailPOST /users/lookupByEmails
VmosoUserApi.UserApiloginPOST /login
VmosoUserApi.UserApilogoutPOST /logout
VmosoUserApi.UserApirequestPasswordPOST /requestpassword
VmosoUserApi.UserApiresetExpiredPasswordPOST /resetExpiredPassword
VmosoUserApi.UserApiresetPasswordactionPOST /resetpasswordaction
VmosoUserApi.UserApiresetPasswordactionPhonePOST /resetpasswordaction/phone
VmosoUserApi.UserApisendSmsCodePOST /smscode/send
VmosoUserApi.UserApisetPublicPOST /user/public/set
VmosoUserApi.UserApisignupPOST /signUpAction
VmosoUserApi.UserApiupdatePasswordPOST /settings/editUserPassWord
VmosoUserApi.UserApivmcRequestPasswordPOST /vmc/requestpassword

Documentation for Models

Documentation for Authorization

vmoso_auth

  • Type: API key
  • API key parameter name: X-CV-Authorization
  • Location: HTTP header
1.0.0

9 years ago