1.0.0 • Published 7 years ago

educhat_api v1.0.0

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

educhat_api

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: 1.0.0
  • Package version: 1.0.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 --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 --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');

var api = new EduchatApi.ApiApi()

var opts = { 
  'data': new EduchatApi.Data() // {Data} 
};

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/No documentation beyond REST Standards;
EduchatApi.BotApibotAddQuestionAnswerPairCreatePOST /v1/bot/add_question_answer_pair/
EduchatApi.BotApibotCreateChatBotCreatePOST /v1/bot/create_chat_bot/
EduchatApi.BotApibotCrowdsourceAdminsOnlyCreatePOST /v1/bot/crowdsource_admins_only/
EduchatApi.BotApibotJoinChatGroupCreatePOST /v1/bot/join_chat_group/
EduchatApi.BotApibotMakeAdminCreatePOST /v1/bot/make_admin/
EduchatApi.BotApibotSendAnswerCreatePOST /v1/bot/send_answer/
EduchatApi.BotApibotValidateCreatePOST /v1/bot/validate/
EduchatApi.BotApibotViewAnswersListGET /v1/bot/view_answers/
EduchatApi.BotApibotViewQuestionsAnswersListGET /v1/bot/view_questions_answers/
EduchatApi.ChatApichatCreatePOST /v1/chat/Paginated;
EduchatApi.ChatApichatDeleteDELETE /v1/chat/{id}/No documentation beyond REST Standards;
EduchatApi.ChatApichatListGET /v1/chat/Paginated;
EduchatApi.ChatApichatPartialUpdatePATCH /v1/chat/{id}/No documentation beyond REST Standards;
EduchatApi.ChatApichatResourcesListGET /v1/chat/{chat}/resources/Paginated;
EduchatApi.Chat_userApichatUserCreatePOST /v1/chat_user/Paginated;
EduchatApi.Chat_userApichatUserDeleteDELETE /v1/chat_user/{chat}/{user}/No documentation beyond REST Standards;
EduchatApi.Chat_userApichatUserListGET /v1/chat_user/Paginated;
EduchatApi.Chat_userApichatUserPartialUpdatePATCH /v1/chat_user/{chat}/{user}/No documentation beyond REST Standards;
EduchatApi.FileApifileCreatePOST /v1/file/No documentation beyond REST Standards;
EduchatApi.FileApifilePartialUpdatePATCH /v1/file/{id}/No documentation beyond REST Standards;
EduchatApi.InstitutionApiinstitutionDepartmentListGET /v1/institution/department/Paginated;
EduchatApi.InstitutionApiinstitutionSchoolListGET /v1/institution/school/Paginated;
EduchatApi.InstitutionApiinstitutionUniversityListGET /v1/institution/university/Paginated;
EduchatApi.MessageApimessageCreatePOST /v1/message/Paginated;
EduchatApi.MessageApimessageListGET /v1/message/Paginated;
EduchatApi.MessageApimessagePartialUpdatePATCH /v1/message/{id}/No documentation beyond REST Standards;
EduchatApi.MessageApimessageUpvoteCreatePOST /v1/message/upvote/Paginated;
EduchatApi.MessageApimessageUpvoteListGET /v1/message/upvote/Paginated;
EduchatApi.PasswordApipasswordRequestCreatePOST /v1/password/request/No documentation beyond REST Standards;
EduchatApi.PasswordApipasswordResetCreatePOST /v1/password/reset/No documentation beyond REST Standards;
EduchatApi.TagApitagChatCreatePOST /v1/tag/chat/No documentation beyond REST Standards;
EduchatApi.TagApitagListGET /v1/tag/No documentation beyond REST Standards;
EduchatApi.TagApitagUserCreatePOST /v1/tag/user/No documentation beyond REST Standards;
EduchatApi.UserApiuserListGET /v1/user/Paginated;
EduchatApi.UserApiuserMeListGET /v1/user/me/No documentation beyond REST Standards;
EduchatApi.UserApiuserPartialUpdatePATCH /v1/user/{id}/No documentation beyond REST Standards;
EduchatApi.UserApiuserSignupCreatePOST /v1/user/signup/No documentation beyond REST Standards;
EduchatApi.UserApiuserVerifyListGET /v1/user/verify/No documentation beyond REST Standards;

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.