1.0.0 • Published 8 years ago

userregister v1.0.0

Weekly downloads
5
License
-
Repository
-
Last release
8 years ago

api

Api - JavaScript client for api \u7528\u6237\u6CE8\u518C This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build date: 2016-04-22T02:22:28.736Z
  • 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 api --save

git

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

npm install YOUR_USERNAME/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 Api = require('api');

var api = new Api.DefaultApi()

var loginName = "loginName_example"; // {String} \u7528\u6237\u540D.

var password = "password_example"; // {String} \u5BC6\u7801.

var phone = "phone_example"; // {String} \u624B\u673A\u53F7.

var validCode = "validCode_example"; // {String} \u77ED\u4FE1\u9A8C\u8BC1\u7801.

var source = "source_example"; // {String} \u6CE8\u518C\u6765\u6E90.

var hospitalId = "hospitalId_example"; // {String} \u9996\u6B21\u6CE8\u518C\u533B\u9662id.

var opts = { 
  'realName': "realName_example", // {String} \u771F\u5B9E\u59D3\u540D.
  'idCard': "idCard_example", // {String} \u8EAB\u4EFD\u8BC1\u53F7\u7801.
  'treateCard': "treateCard_example", // {String} \u5C31\u8BCA\u5361\u53F7.
  'sex': "sex_example", // {String} \u6027\u522B 1\u75372\u5973.
  'email': "email_example", // {String} \u90AE\u7BB1.
  'QQ': "QQ_example", // {String} QQ.
  'province': "province_example", // {String} \u6240\u5728\u7701\uFF08\u5E02\uFF09.
  'city': "city_example", // {String} \u6240\u5728\u57CE\u5E02.
  'job': "job_example", // {String} \u804C\u4E1A.
  'birthday': "birthday_example", // {String} \u751F\u65E5.
  'nation': "nation_example", // {String} \u6C11\u65CF.
  'address': "address_example", // {String} \u4F4F\u5740.
  'birthAddress': "birthAddress_example" // {String} \u51FA\u751F\u5730\u5740.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.registerGet(loginName, password, phone, validCode, source, hospitalId, opts, callback);

Documentation for API Endpoints

All URIs are relative to http://115.159.113.37:15110/

ClassMethodHTTP requestDescription
Api.DefaultApiregisterGetGET /register\u7528\u6237\u6CE8\u518C

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.