1.0.1 • Published 6 years ago

magic_info_api v1.0.1

Weekly downloads
-
License
Unlicense
Repository
-
Last release
6 years ago

magic_info_api

MagicInfoApi - JavaScript client for magic_info_api magic info api This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: 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 magic_info_api --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your magic_info_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('magic_info_api') in javascript files from the directory you ran the last command above from.

git

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

    npm install YOUR_USERNAME/magic_info_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, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

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

var MagicInfoApi = require('magic_info_api');

var api = new MagicInfoApi.AuthApi()

var userLogin = new MagicInfoApi.AuthResource(); // {AuthResource} resource


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

Documentation for API Endpoints

All URIs are relative to http://127.0.0.1:7001/MagicInfo

ClassMethodHTTP requestDescription
MagicInfoApi.AuthApiauthorizationPOST /authAuthorization
MagicInfoApi.AuthApirefreshAuthorizationGET /auth/refreshRefresh Authorization Token
MagicInfoApi.ContentControllerApiapproveContentsUsingPUT1PUT /restapi/v1.0/cms/contents/{contentId}/approvalapproveContents
MagicInfoApi.ContentControllerApideleteContentUsingDELETE1DELETE /restapi/v1.0/cms/contents/{contentId}deleteContent
MagicInfoApi.ContentControllerApiforceDeleteContentUsingDELETE1DELETE /restapi/v1.0/cms/contents/force/{contentId}forceDeleteContent
MagicInfoApi.ContentControllerApigetActiveContentInfoUsingGETGET /restapi/v1.0/cms/contents/{contentId}getActiveContentInfo
MagicInfoApi.ContentControllerApilistAllContentUsingGETGET /restapi/v1.0/cms/contentslistAllContent
MagicInfoApi.ContentControllerApilistContentUsingPOST1POST /restapi/v1.0/cms/contents/filterlistContent
MagicInfoApi.ContentControllerApilistDashboardContentInfoUsingGETGET /restapi/v1.0/cms/contents/dashboardlistDashboardContentInfo
MagicInfoApi.ContentControllerApiuploadContentUsingPOSTPOST /restapi/v1.0/cms/contents/{groupId}uploadContent
MagicInfoApi.ContentGroupControllerApigetGroupUsingGETGET /restapi/v1.0/cms/contents/groups/{groupId}getGroup
MagicInfoApi.ContentGroupControllerApilistChildGroupUsingGET1GET /restapi/v1.0/cms/contents/groups/{groupId}/childlistChildGroup
MagicInfoApi.ContentGroupControllerApilistDefaultGroupUsingGET1GET /restapi/v1.0/cms/contents/groupslistDefaultGroup
MagicInfoApi.ContentScheduleControllerApicopyContentScheduleUsingPUT1PUT /restapi/v1.0/dms/schedule/contents/{programId}/copycopyContentSchedule
MagicInfoApi.ContentScheduleControllerApicreateContentScheduleUsingPOST1POST /restapi/v1.0/dms/schedule/contentscreateContentSchedule
MagicInfoApi.ContentScheduleControllerApideleteContentScheduleUsingDELETEDELETE /restapi/v1.0/dms/schedule/contents/{programId}deleteContentSchedule
MagicInfoApi.ContentScheduleControllerApideployContentScheduleUsingPUTPUT /restapi/v1.0/dms/schedule/contents/{programId}/deploydeployContentSchedule
MagicInfoApi.ContentScheduleControllerApieditContentScheduleUsingPUTPUT /restapi/v1.0/dms/schedule/contents/{programId}editContentSchedule
MagicInfoApi.ContentScheduleControllerApigetProgramInfoUsingGET1GET /restapi/v1.0/dms/schedule/contents/{programId}getProgramInfo
MagicInfoApi.ContentScheduleControllerApigetPublishStatusUsingGETGET /restapi/v1.0/dms/schedule/contents/{programId}/publishStatusgetPublishStatus
MagicInfoApi.ContentScheduleControllerApilistContentScheduleAllUsingGET1GET /restapi/v1.0/dms/schedule/contentslistContentScheduleAll
MagicInfoApi.ContentScheduleControllerApilistContentScheduleByGroupUsingPOST1POST /restapi/v1.0/dms/schedule/contents/filterlistContentScheduleByGroup
MagicInfoApi.ContentScheduleControllerApilistDashboardScheduleInfoUsingGETGET /restapi/v1.0/dms/schedule/contents/dashboardlistDashboardScheduleInfo
MagicInfoApi.ContentScheduleGroupControllerApigetChildGroupsUsingGETGET /restapi/v1.0/dms/schedule/contents/groups/{groupId}/childgetChildGroups
MagicInfoApi.ContentScheduleGroupControllerApigetRootGroupsUsingGETGET /restapi/v1.0/dms/schedule/contents/groupsgetRootGroups
MagicInfoApi.ContentScheduleGroupControllerApilistContentScheduleGroupInfoUsingGETGET /restapi/v1.0/dms/schedule/contents/groups/{groupId}listContentScheduleGroupInfo
MagicInfoApi.DeviceControllerApiapproveDeviceUsingPUTPUT /restapi/v1.0/rms/devices/{deviceId}/approvalapproveDevice
MagicInfoApi.DeviceControllerApideleteDeviceUsingDELETEDELETE /restapi/v1.0/rms/devices/{deviceId}deleteDevice
MagicInfoApi.DeviceControllerApifilterDeviceListUsingPOSTPOST /restapi/v1.0/rms/devices/filterfilterDeviceList
MagicInfoApi.DeviceControllerApigetCabinetListUsingPOST1POST /restapi/v1.0/rms/devices/{deviceId}/cabinetgetCabinetList
MagicInfoApi.DeviceControllerApigetCurrentStatusDisplayUsingGET1GET /restapi/v1.0/rms/devices/{deviceId}/status/display/{requestId}getCurrentStatusDisplay
MagicInfoApi.DeviceControllerApigetCurrentStatusDisplayUsingGET3GET /restapi/v1.0/rms/devices/{deviceId}/status/displaygetCurrentStatusDisplay
MagicInfoApi.DeviceControllerApigetCurrentStatusSecurityUsingGET1GET /restapi/v1.0/rms/devices/{deviceId}/status/security/{requestId}getCurrentStatusSecurity
MagicInfoApi.DeviceControllerApigetCurrentStatusSecurityUsingGET3GET /restapi/v1.0/rms/devices/{deviceId}/status/securitygetCurrentStatusSecurity
MagicInfoApi.DeviceControllerApigetCurrentStatusTimeUsingGETGET /restapi/v1.0/rms/devices/{deviceId}/status/time/{requestId}getCurrentStatusTime
MagicInfoApi.DeviceControllerApigetCurrentStatusTimeUsingGET3GET /restapi/v1.0/rms/devices/{deviceId}/status/timegetCurrentStatusTime
MagicInfoApi.DeviceControllerApigetDashboardDeviceInfoUsingGETGET /restapi/v1.0/rms/devices/dashboardgetDashboardDeviceInfo
MagicInfoApi.DeviceControllerApigetDeviceUsingGET1GET /restapi/v1.0/rms/devices/{deviceId}getDevice
MagicInfoApi.DeviceControllerApigetDisplayControlInfoUsingGET1GET /restapi/v1.0/rms/devices/{deviceId}/displaygetDisplayControlInfo
MagicInfoApi.DeviceControllerApigetGeneralInfoUsingGET1GET /restapi/v1.0/rms/devices/{deviceId}/generalgetGeneralInfo
MagicInfoApi.DeviceControllerApigetSecurityControlInfoUsingGET1GET /restapi/v1.0/rms/devices/{deviceId}/securitygetSecurityControlInfo
MagicInfoApi.DeviceControllerApigetSetupInfoUsingGET1GET /restapi/v1.0/rms/devices/{deviceId}/setupgetSetupInfo
MagicInfoApi.DeviceControllerApigetTimeInfoUsingGETGET /restapi/v1.0/rms/devices/{deviceId}/timegetTimeInfo
MagicInfoApi.DeviceControllerApigetUpdatedDisplayInfoResultUsingGET1GET /restapi/v1.0/rms/devices/{deviceId}/display/{requestId}getUpdatedDisplayInfoResult
MagicInfoApi.DeviceControllerApigetUpdatedGeneralInfoResultUsingGETGET /restapi/v1.0/rms/devices/{deviceId}/general/{requestId}getUpdatedGeneralInfoResult
MagicInfoApi.DeviceControllerApigetUpdatedSetupInfoResultUsingGET1GET /restapi/v1.0/rms/devices/{deviceId}/setup/{requestId}getUpdatedSetupInfoResult
MagicInfoApi.DeviceControllerApigetUpdatedTimeInfoResultUsingGETGET /restapi/v1.0/rms/devices/{deviceId}/time/{requestId}getUpdatedTimeInfoResult
MagicInfoApi.DeviceControllerApilistAllDeviceUsingGETGET /restapi/v1.0/rms/deviceslistAllDevice
MagicInfoApi.DeviceControllerApimoveDeviceUsingPUTPUT /restapi/v1.0/rms/devices/{deviceId}/movemoveDevice
MagicInfoApi.DeviceControllerApistartRmServerVncUsingGETGET /restapi/v1.0/rms/devices/{deviceId}/rmserver/startstartRmServerVnc
MagicInfoApi.DeviceControllerApistopRmServerVncUsingGETGET /restapi/v1.0/rms/devices/{deviceId}/rmserver/stopstopRmServerVnc
MagicInfoApi.DeviceControllerApiupdateCabinetInfoUsingPUTPUT /restapi/v1.0/rms/devices/{deviceId}/cabinetupdateCabinetInfo
MagicInfoApi.DeviceControllerApiupdateDisplayInfoUsingPUTPUT /restapi/v1.0/rms/devices/{deviceId}/displayupdateDisplayInfo
MagicInfoApi.DeviceControllerApiupdateGeneralInfoUsingPUTPUT /restapi/v1.0/rms/devices/{deviceId}/general/infoupdateGeneralInfo
MagicInfoApi.DeviceControllerApiupdateGeneralUsingPUTPUT /restapi/v1.0/rms/devices/{deviceId}/generalupdateGeneral
MagicInfoApi.DeviceControllerApiupdateSecurityInfoUsingPUTPUT /restapi/v1.0/rms/devices/{deviceId}/securityupdateSecurityInfo
MagicInfoApi.DeviceControllerApiupdateSetupInfoUsingPUTPUT /restapi/v1.0/rms/devices/{deviceId}/setupupdateSetupInfo
MagicInfoApi.DeviceControllerApiupdateTimeInfoUsingPUT1PUT /restapi/v1.0/rms/devices/{deviceId}/timeupdateTimeInfo
MagicInfoApi.DeviceGroupControllerApilistDeviceGroupChildUsingGETGET /restapi/v1.0/rms/devices/groups/{groupId}/childlistDeviceGroupChild
MagicInfoApi.DeviceGroupControllerApilistDeviceGroupInfoUsingGET1GET /restapi/v1.0/rms/devices/groups/{groupId}listDeviceGroupInfo
MagicInfoApi.DeviceGroupControllerApilistDeviceGroupOrganUsingGETGET /restapi/v1.0/rms/devices/groupslistDeviceGroupOrgan
MagicInfoApi.EnvironmentControllerApicheckLicenseStatusUsingGET1GET /restapi/v1.0/ems/license/checkcheckLicenseStatus
MagicInfoApi.EnvironmentControllerApicreateDashboardUsingGET1GET /restapi/v1.0/ems/dashboard/createcreateDashboard
MagicInfoApi.EnvironmentControllerApicreateNoticeInfoUsingPOSTPOST /restapi/v1.0/ems/dashboard/notice/editcreateNoticeInfo
MagicInfoApi.EnvironmentControllerApideleteDashboardUsingDELETE1DELETE /restapi/v1.0/ems/dashboarddeleteDashboard
MagicInfoApi.EnvironmentControllerApideleteNoticeInfoUsingDELETEDELETE /restapi/v1.0/ems/dashboard/notice/editdeleteNoticeInfo
MagicInfoApi.EnvironmentControllerApigetCategoryInfoUsingGETGET /restapi/v1.0/ems/category/{categoryId}getCategoryInfo
MagicInfoApi.EnvironmentControllerApigetDeviceStatusInfoUsingGETGET /restapi/v1.0/ems/device/checkgetDeviceStatusInfo
MagicInfoApi.EnvironmentControllerApigetLicenseCheckDetailUsingGET1GET /restapi/v1.0/ems/license/check/detailgetLicenseCheckDetail
MagicInfoApi.EnvironmentControllerApigetMenuItemCountUsingGETGET /restapi/v1.0/ems/menu/countgetMenuItemCount
MagicInfoApi.EnvironmentControllerApigetServerSetupInfoUsingGET1GET /restapi/v1.0/ems/setupgetServerSetupInfo
MagicInfoApi.EnvironmentControllerApigetTagListInfoUsingPOST1POST /restapi/v1.0/ems/taggetTagListInfo
MagicInfoApi.EnvironmentControllerApilistDashboardInfoUsingGET1GET /restapi/v1.0/ems/dashboardlistDashboardInfo
MagicInfoApi.EnvironmentControllerApilistDashboardLoginInfoUsingGET1GET /restapi/v1.0/ems/dashboard/loginlistDashboardLoginInfo
MagicInfoApi.EnvironmentControllerApilistDashboardNoticeInfoUsingGET1GET /restapi/v1.0/ems/dashboard/noticelistDashboardNoticeInfo
MagicInfoApi.EnvironmentControllerApilistDashboardStorageInfoUsingGETGET /restapi/v1.0/ems/dashboard/storagelistDashboardStorageInfo
MagicInfoApi.EnvironmentControllerApilistEditNoticeInfoUsingGET1GET /restapi/v1.0/ems/dashboard/notice/editlistEditNoticeInfo
MagicInfoApi.EnvironmentControllerApilistLicenseUsingGET1GET /restapi/v1.0/ems/licenselistLicense
MagicInfoApi.EnvironmentControllerApilistMenuUsingGETGET /restapi/v1.0/ems/menulistMenu
MagicInfoApi.EnvironmentControllerApiupdateDashboardPriorityUsingPUTPUT /restapi/v1.0/ems/dashboardupdateDashboardPriority
MagicInfoApi.EnvironmentControllerApiupdateNoticeInfoUsingPUT1PUT /restapi/v1.0/ems/dashboard/notice/editupdateNoticeInfo
MagicInfoApi.MessageScheduleControllerApicopyMessageScheduleUsingPUT1PUT /restapi/v1.0/dms/schedule/messages/{messageId}/copycopyMessageSchedule
MagicInfoApi.MessageScheduleControllerApicreateMessageScheduleUsingPOSTPOST /restapi/v1.0/dms/schedule/messagescreateMessageSchedule
MagicInfoApi.MessageScheduleControllerApideleteMessageScheduleUsingDELETE1DELETE /restapi/v1.0/dms/schedule/messages/{messageId}deleteMessageSchedule
MagicInfoApi.MessageScheduleControllerApideployMessageScheduleUsingPUTPUT /restapi/v1.0/dms/schedule/messages/{messageId}/deploydeployMessageSchedule
MagicInfoApi.MessageScheduleControllerApieditMessageScheduleUsingPUT1PUT /restapi/v1.0/dms/schedule/messages/{messageId}editMessageSchedule
MagicInfoApi.MessageScheduleControllerApigetMessageInfoUsingGET1GET /restapi/v1.0/dms/schedule/messages/{messageId}getMessageInfo
MagicInfoApi.MessageScheduleControllerApilistAllMessageScheduleUsingGETGET /restapi/v1.0/dms/schedule/messageslistAllMessageSchedule
MagicInfoApi.MessageScheduleControllerApilistMessageUsingPOSTPOST /restapi/v1.0/dms/schedule/messages/filterlistMessage
MagicInfoApi.MessageScheduleGroupControllerApigetChildGroupsUsingGET3GET /restapi/v1.0/dms/schedule/messages/groups/{groupId}/childgetChildGroups
MagicInfoApi.MessageScheduleGroupControllerApigetRootGroupsUsingGET2GET /restapi/v1.0/dms/schedule/messages/groupsgetRootGroups
MagicInfoApi.MessageScheduleGroupControllerApilistMessageScheduleGroupInfoUsingGETGET /restapi/v1.0/dms/schedule/messages/groups/{groupId}listMessageScheduleGroupInfo
MagicInfoApi.PlaylistControllerApicopyPlaylistUsingPUT1PUT /restapi/v1.0/cms/playlists/{playlistId}/copycopyPlaylist
MagicInfoApi.PlaylistControllerApicreatePlaylistUsingPOSTPOST /restapi/v1.0/cms/playlistscreatePlaylist
MagicInfoApi.PlaylistControllerApideletePlaylistUsingDELETEDELETE /restapi/v1.0/cms/playlists/{playlistId}deletePlaylist
MagicInfoApi.PlaylistControllerApieditPlaylistUsingPUTPUT /restapi/v1.0/cms/playlists/{playlistId}editPlaylist
MagicInfoApi.PlaylistControllerApigetActivePlaylistInfoUsingGETGET /restapi/v1.0/cms/playlists/{playlistId}getActivePlaylistInfo
MagicInfoApi.PlaylistControllerApigetDashboardPlaylistInfoUsingGET1GET /restapi/v1.0/cms/playlists/dashboardgetDashboardPlaylistInfo
MagicInfoApi.PlaylistControllerApilistAllPlaylistUsingGET1GET /restapi/v1.0/cms/playlistslistAllPlaylist
MagicInfoApi.PlaylistControllerApilistPlaylistUsingPOST1POST /restapi/v1.0/cms/playlists/filterlistPlaylist
MagicInfoApi.PlaylistGroupControllerApigetGroupUsingGET3GET /restapi/v1.0/cms/playlists/groups/{groupId}getGroup
MagicInfoApi.PlaylistGroupControllerApilistChildGroupUsingGET2GET /restapi/v1.0/cms/playlists/groups/{groupId}/childlistChildGroup
MagicInfoApi.PlaylistGroupControllerApilistDefaultGroupUsingGET2GET /restapi/v1.0/cms/playlists/groupslistDefaultGroup
MagicInfoApi.UserControllerApicreateUserSignUpUsingPOSTPOST /restapi/v1.0/ums/users/signupcreateUserSignUp
MagicInfoApi.UserControllerApicreateUserUsingPOSTPOST /restapi/v1.0/ums/userscreateUser
MagicInfoApi.UserControllerApilistDashboardUserInfoUsingGETGET /restapi/v1.0/ums/users/dashboardlistDashboardUserInfo
MagicInfoApi.UserControllerApilistMyInfoUsingGETGET /restapi/v1.0/ums/users/meGet specific admin
MagicInfoApi.UserControllerApilistUserOrganUsingGET1GET /restapi/v1.0/ums/users/organizationlistUserOrgan
MagicInfoApi.UserControllerApiupdateMyInfoUsingPUT1PUT /restapi/v1.0/ums/users/meupdateMyInfo
MagicInfoApi.UserGroupControllerApilistUserGroupChildUsingGET1GET /restapi/v1.0/ums/users/groups/{groupId}/childlistUserGroupChild
MagicInfoApi.UserGroupControllerApilistUserGroupInfoUsingGET1GET /restapi/v1.0/ums/users/groups/{groupId}listUserGroupInfo
MagicInfoApi.UserGroupControllerApilistUserGroupOrganUsingGET1GET /restapi/v1.0/ums/users/groupslistUserGroupOrgan

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header