31.23.0 • Published 7 years ago

educhat_api_alpha v31.23.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 years ago

educhat_api_alpha

EduchatApi - JavaScript client for educhat_api No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: 31.23.0
  • Package version: 31.23.0
  • 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 educhat_api_alpha --save

git

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

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

var defaultClient = EduchatApi.ApiClient.instance;

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

var api = new EduchatApi.ApiApi()

var opts = { 
  'loginInput': new EduchatApi.LoginInput() // {LoginInput} 
};

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

Documentation for API Endpoints

All URIs are relative to https://api.edu.chat

ClassMethodHTTP requestDescription
EduchatApi.ApiApiapiLoginCreatePOST /v1/api/login/
EduchatApi.ApiApiapiLogoutCreatePOST /v1/api/logout/
EduchatApi.ChatApichatAllListGET /v1/chat/all/
EduchatApi.ChatApichatCreatePOST /v1/chat/
EduchatApi.ChatApichatDeleteDELETE /v1/chat/{id}/
EduchatApi.ChatApichatJoinlistListGET /v1/chat/joinlist/
EduchatApi.ChatApichatListGET /v1/chat/
EduchatApi.ChatApichatPartialUpdatePATCH /v1/chat/{id}/
EduchatApi.Chat_userApichatUserCreatePOST /v1/chat_user/
EduchatApi.Chat_userApichatUserDeleteDELETE /v1/chat_user/{chat}/{user}/
EduchatApi.Chat_userApichatUserListGET /v1/chat_user/
EduchatApi.Chat_userApichatUserPartialUpdatePATCH /v1/chat_user/{chat}/{user}/
EduchatApi.Chat_userApichatUserPrivilegedListGET /v1/chat_user/privileged/
EduchatApi.Chat_userApichatUserTypingCreatePOST /v1/chat_user/typing/
EduchatApi.FileApifileCreatePOST /v1/file/
EduchatApi.FileApifilePartialUpdatePATCH /v1/file/{id}/
EduchatApi.InstitutionApiinstitutionDepartmentListGET /v1/institution/department/
EduchatApi.InstitutionApiinstitutionSchoolListGET /v1/institution/school/
EduchatApi.InstitutionApiinstitutionUniversityListGET /v1/institution/university/
EduchatApi.MessageApimessageCreatePOST /v1/message/
EduchatApi.MessageApimessageListGET /v1/message/
EduchatApi.MessageApimessagePartialUpdatePATCH /v1/message/{id}/
EduchatApi.MessageApimessageReportCreatePOST /v1/message/report/
EduchatApi.MessageApimessageUpvoteCreatePOST /v1/message/upvote/
EduchatApi.MessageApimessageUpvoteListGET /v1/message/upvote/
EduchatApi.PasswordApipasswordRequestCreatePOST /v1/password/request/
EduchatApi.PasswordApipasswordResetCreatePOST /v1/password/reset/
EduchatApi.TagApitagChatCreatePOST /v1/tag/chat/
EduchatApi.TagApitagChatDeleteDELETE /v1/tag/{tag}/chat/{chat}/
EduchatApi.TagApitagListGET /v1/tag/
EduchatApi.TagApitagUserCreatePOST /v1/tag/user/
EduchatApi.TagApitagUserDeleteDELETE /v1/tag/{tag}/user/{user}/
EduchatApi.UserApiuserListGET /v1/user/
EduchatApi.UserApiuserMeListGET /v1/user/me/
EduchatApi.UserApiuserPartialUpdatePATCH /v1/user/{id}/
EduchatApi.UserApiuserPreferencesListGET /v1/user/preferences/
EduchatApi.UserApiuserPreferencesPartialUpdatePATCH /v1/user/preferences/{id}
EduchatApi.UserApiuserSignupCreatePOST /v1/user/signup/
EduchatApi.UserApiuserVerifyListGET /v1/user/verify/

Documentation for Models

Documentation for Authorization

Token

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header
31.23.0

7 years ago

30.22.0

7 years ago

30.20.1

7 years ago

30.20.0

7 years ago

29.20.2

7 years ago

29.20.1

7 years ago

29.20.0

7 years ago

29.19.0

7 years ago

29.18.0

7 years ago

29.17.0

7 years ago

28.15.0

7 years ago

27.13.3

7 years ago

27.13.2

7 years ago

27.13.1

7 years ago

27.13.0

7 years ago

26.9.2

7 years ago

26.9.1

7 years ago

26.9.0

7 years ago