magic_info_api v1.0.1
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
Class | Method | HTTP request | Description |
---|---|---|---|
MagicInfoApi.AuthApi | authorization | POST /auth | Authorization |
MagicInfoApi.AuthApi | refreshAuthorization | GET /auth/refresh | Refresh Authorization Token |
MagicInfoApi.ContentControllerApi | approveContentsUsingPUT1 | PUT /restapi/v1.0/cms/contents/{contentId}/approval | approveContents |
MagicInfoApi.ContentControllerApi | deleteContentUsingDELETE1 | DELETE /restapi/v1.0/cms/contents/{contentId} | deleteContent |
MagicInfoApi.ContentControllerApi | forceDeleteContentUsingDELETE1 | DELETE /restapi/v1.0/cms/contents/force/{contentId} | forceDeleteContent |
MagicInfoApi.ContentControllerApi | getActiveContentInfoUsingGET | GET /restapi/v1.0/cms/contents/{contentId} | getActiveContentInfo |
MagicInfoApi.ContentControllerApi | listAllContentUsingGET | GET /restapi/v1.0/cms/contents | listAllContent |
MagicInfoApi.ContentControllerApi | listContentUsingPOST1 | POST /restapi/v1.0/cms/contents/filter | listContent |
MagicInfoApi.ContentControllerApi | listDashboardContentInfoUsingGET | GET /restapi/v1.0/cms/contents/dashboard | listDashboardContentInfo |
MagicInfoApi.ContentControllerApi | uploadContentUsingPOST | POST /restapi/v1.0/cms/contents/{groupId} | uploadContent |
MagicInfoApi.ContentGroupControllerApi | getGroupUsingGET | GET /restapi/v1.0/cms/contents/groups/{groupId} | getGroup |
MagicInfoApi.ContentGroupControllerApi | listChildGroupUsingGET1 | GET /restapi/v1.0/cms/contents/groups/{groupId}/child | listChildGroup |
MagicInfoApi.ContentGroupControllerApi | listDefaultGroupUsingGET1 | GET /restapi/v1.0/cms/contents/groups | listDefaultGroup |
MagicInfoApi.ContentScheduleControllerApi | copyContentScheduleUsingPUT1 | PUT /restapi/v1.0/dms/schedule/contents/{programId}/copy | copyContentSchedule |
MagicInfoApi.ContentScheduleControllerApi | createContentScheduleUsingPOST1 | POST /restapi/v1.0/dms/schedule/contents | createContentSchedule |
MagicInfoApi.ContentScheduleControllerApi | deleteContentScheduleUsingDELETE | DELETE /restapi/v1.0/dms/schedule/contents/{programId} | deleteContentSchedule |
MagicInfoApi.ContentScheduleControllerApi | deployContentScheduleUsingPUT | PUT /restapi/v1.0/dms/schedule/contents/{programId}/deploy | deployContentSchedule |
MagicInfoApi.ContentScheduleControllerApi | editContentScheduleUsingPUT | PUT /restapi/v1.0/dms/schedule/contents/{programId} | editContentSchedule |
MagicInfoApi.ContentScheduleControllerApi | getProgramInfoUsingGET1 | GET /restapi/v1.0/dms/schedule/contents/{programId} | getProgramInfo |
MagicInfoApi.ContentScheduleControllerApi | getPublishStatusUsingGET | GET /restapi/v1.0/dms/schedule/contents/{programId}/publishStatus | getPublishStatus |
MagicInfoApi.ContentScheduleControllerApi | listContentScheduleAllUsingGET1 | GET /restapi/v1.0/dms/schedule/contents | listContentScheduleAll |
MagicInfoApi.ContentScheduleControllerApi | listContentScheduleByGroupUsingPOST1 | POST /restapi/v1.0/dms/schedule/contents/filter | listContentScheduleByGroup |
MagicInfoApi.ContentScheduleControllerApi | listDashboardScheduleInfoUsingGET | GET /restapi/v1.0/dms/schedule/contents/dashboard | listDashboardScheduleInfo |
MagicInfoApi.ContentScheduleGroupControllerApi | getChildGroupsUsingGET | GET /restapi/v1.0/dms/schedule/contents/groups/{groupId}/child | getChildGroups |
MagicInfoApi.ContentScheduleGroupControllerApi | getRootGroupsUsingGET | GET /restapi/v1.0/dms/schedule/contents/groups | getRootGroups |
MagicInfoApi.ContentScheduleGroupControllerApi | listContentScheduleGroupInfoUsingGET | GET /restapi/v1.0/dms/schedule/contents/groups/{groupId} | listContentScheduleGroupInfo |
MagicInfoApi.DeviceControllerApi | approveDeviceUsingPUT | PUT /restapi/v1.0/rms/devices/{deviceId}/approval | approveDevice |
MagicInfoApi.DeviceControllerApi | deleteDeviceUsingDELETE | DELETE /restapi/v1.0/rms/devices/{deviceId} | deleteDevice |
MagicInfoApi.DeviceControllerApi | filterDeviceListUsingPOST | POST /restapi/v1.0/rms/devices/filter | filterDeviceList |
MagicInfoApi.DeviceControllerApi | getCabinetListUsingPOST1 | POST /restapi/v1.0/rms/devices/{deviceId}/cabinet | getCabinetList |
MagicInfoApi.DeviceControllerApi | getCurrentStatusDisplayUsingGET1 | GET /restapi/v1.0/rms/devices/{deviceId}/status/display/{requestId} | getCurrentStatusDisplay |
MagicInfoApi.DeviceControllerApi | getCurrentStatusDisplayUsingGET3 | GET /restapi/v1.0/rms/devices/{deviceId}/status/display | getCurrentStatusDisplay |
MagicInfoApi.DeviceControllerApi | getCurrentStatusSecurityUsingGET1 | GET /restapi/v1.0/rms/devices/{deviceId}/status/security/{requestId} | getCurrentStatusSecurity |
MagicInfoApi.DeviceControllerApi | getCurrentStatusSecurityUsingGET3 | GET /restapi/v1.0/rms/devices/{deviceId}/status/security | getCurrentStatusSecurity |
MagicInfoApi.DeviceControllerApi | getCurrentStatusTimeUsingGET | GET /restapi/v1.0/rms/devices/{deviceId}/status/time/{requestId} | getCurrentStatusTime |
MagicInfoApi.DeviceControllerApi | getCurrentStatusTimeUsingGET3 | GET /restapi/v1.0/rms/devices/{deviceId}/status/time | getCurrentStatusTime |
MagicInfoApi.DeviceControllerApi | getDashboardDeviceInfoUsingGET | GET /restapi/v1.0/rms/devices/dashboard | getDashboardDeviceInfo |
MagicInfoApi.DeviceControllerApi | getDeviceUsingGET1 | GET /restapi/v1.0/rms/devices/{deviceId} | getDevice |
MagicInfoApi.DeviceControllerApi | getDisplayControlInfoUsingGET1 | GET /restapi/v1.0/rms/devices/{deviceId}/display | getDisplayControlInfo |
MagicInfoApi.DeviceControllerApi | getGeneralInfoUsingGET1 | GET /restapi/v1.0/rms/devices/{deviceId}/general | getGeneralInfo |
MagicInfoApi.DeviceControllerApi | getSecurityControlInfoUsingGET1 | GET /restapi/v1.0/rms/devices/{deviceId}/security | getSecurityControlInfo |
MagicInfoApi.DeviceControllerApi | getSetupInfoUsingGET1 | GET /restapi/v1.0/rms/devices/{deviceId}/setup | getSetupInfo |
MagicInfoApi.DeviceControllerApi | getTimeInfoUsingGET | GET /restapi/v1.0/rms/devices/{deviceId}/time | getTimeInfo |
MagicInfoApi.DeviceControllerApi | getUpdatedDisplayInfoResultUsingGET1 | GET /restapi/v1.0/rms/devices/{deviceId}/display/{requestId} | getUpdatedDisplayInfoResult |
MagicInfoApi.DeviceControllerApi | getUpdatedGeneralInfoResultUsingGET | GET /restapi/v1.0/rms/devices/{deviceId}/general/{requestId} | getUpdatedGeneralInfoResult |
MagicInfoApi.DeviceControllerApi | getUpdatedSetupInfoResultUsingGET1 | GET /restapi/v1.0/rms/devices/{deviceId}/setup/{requestId} | getUpdatedSetupInfoResult |
MagicInfoApi.DeviceControllerApi | getUpdatedTimeInfoResultUsingGET | GET /restapi/v1.0/rms/devices/{deviceId}/time/{requestId} | getUpdatedTimeInfoResult |
MagicInfoApi.DeviceControllerApi | listAllDeviceUsingGET | GET /restapi/v1.0/rms/devices | listAllDevice |
MagicInfoApi.DeviceControllerApi | moveDeviceUsingPUT | PUT /restapi/v1.0/rms/devices/{deviceId}/move | moveDevice |
MagicInfoApi.DeviceControllerApi | startRmServerVncUsingGET | GET /restapi/v1.0/rms/devices/{deviceId}/rmserver/start | startRmServerVnc |
MagicInfoApi.DeviceControllerApi | stopRmServerVncUsingGET | GET /restapi/v1.0/rms/devices/{deviceId}/rmserver/stop | stopRmServerVnc |
MagicInfoApi.DeviceControllerApi | updateCabinetInfoUsingPUT | PUT /restapi/v1.0/rms/devices/{deviceId}/cabinet | updateCabinetInfo |
MagicInfoApi.DeviceControllerApi | updateDisplayInfoUsingPUT | PUT /restapi/v1.0/rms/devices/{deviceId}/display | updateDisplayInfo |
MagicInfoApi.DeviceControllerApi | updateGeneralInfoUsingPUT | PUT /restapi/v1.0/rms/devices/{deviceId}/general/info | updateGeneralInfo |
MagicInfoApi.DeviceControllerApi | updateGeneralUsingPUT | PUT /restapi/v1.0/rms/devices/{deviceId}/general | updateGeneral |
MagicInfoApi.DeviceControllerApi | updateSecurityInfoUsingPUT | PUT /restapi/v1.0/rms/devices/{deviceId}/security | updateSecurityInfo |
MagicInfoApi.DeviceControllerApi | updateSetupInfoUsingPUT | PUT /restapi/v1.0/rms/devices/{deviceId}/setup | updateSetupInfo |
MagicInfoApi.DeviceControllerApi | updateTimeInfoUsingPUT1 | PUT /restapi/v1.0/rms/devices/{deviceId}/time | updateTimeInfo |
MagicInfoApi.DeviceGroupControllerApi | listDeviceGroupChildUsingGET | GET /restapi/v1.0/rms/devices/groups/{groupId}/child | listDeviceGroupChild |
MagicInfoApi.DeviceGroupControllerApi | listDeviceGroupInfoUsingGET1 | GET /restapi/v1.0/rms/devices/groups/{groupId} | listDeviceGroupInfo |
MagicInfoApi.DeviceGroupControllerApi | listDeviceGroupOrganUsingGET | GET /restapi/v1.0/rms/devices/groups | listDeviceGroupOrgan |
MagicInfoApi.EnvironmentControllerApi | checkLicenseStatusUsingGET1 | GET /restapi/v1.0/ems/license/check | checkLicenseStatus |
MagicInfoApi.EnvironmentControllerApi | createDashboardUsingGET1 | GET /restapi/v1.0/ems/dashboard/create | createDashboard |
MagicInfoApi.EnvironmentControllerApi | createNoticeInfoUsingPOST | POST /restapi/v1.0/ems/dashboard/notice/edit | createNoticeInfo |
MagicInfoApi.EnvironmentControllerApi | deleteDashboardUsingDELETE1 | DELETE /restapi/v1.0/ems/dashboard | deleteDashboard |
MagicInfoApi.EnvironmentControllerApi | deleteNoticeInfoUsingDELETE | DELETE /restapi/v1.0/ems/dashboard/notice/edit | deleteNoticeInfo |
MagicInfoApi.EnvironmentControllerApi | getCategoryInfoUsingGET | GET /restapi/v1.0/ems/category/{categoryId} | getCategoryInfo |
MagicInfoApi.EnvironmentControllerApi | getDeviceStatusInfoUsingGET | GET /restapi/v1.0/ems/device/check | getDeviceStatusInfo |
MagicInfoApi.EnvironmentControllerApi | getLicenseCheckDetailUsingGET1 | GET /restapi/v1.0/ems/license/check/detail | getLicenseCheckDetail |
MagicInfoApi.EnvironmentControllerApi | getMenuItemCountUsingGET | GET /restapi/v1.0/ems/menu/count | getMenuItemCount |
MagicInfoApi.EnvironmentControllerApi | getServerSetupInfoUsingGET1 | GET /restapi/v1.0/ems/setup | getServerSetupInfo |
MagicInfoApi.EnvironmentControllerApi | getTagListInfoUsingPOST1 | POST /restapi/v1.0/ems/tag | getTagListInfo |
MagicInfoApi.EnvironmentControllerApi | listDashboardInfoUsingGET1 | GET /restapi/v1.0/ems/dashboard | listDashboardInfo |
MagicInfoApi.EnvironmentControllerApi | listDashboardLoginInfoUsingGET1 | GET /restapi/v1.0/ems/dashboard/login | listDashboardLoginInfo |
MagicInfoApi.EnvironmentControllerApi | listDashboardNoticeInfoUsingGET1 | GET /restapi/v1.0/ems/dashboard/notice | listDashboardNoticeInfo |
MagicInfoApi.EnvironmentControllerApi | listDashboardStorageInfoUsingGET | GET /restapi/v1.0/ems/dashboard/storage | listDashboardStorageInfo |
MagicInfoApi.EnvironmentControllerApi | listEditNoticeInfoUsingGET1 | GET /restapi/v1.0/ems/dashboard/notice/edit | listEditNoticeInfo |
MagicInfoApi.EnvironmentControllerApi | listLicenseUsingGET1 | GET /restapi/v1.0/ems/license | listLicense |
MagicInfoApi.EnvironmentControllerApi | listMenuUsingGET | GET /restapi/v1.0/ems/menu | listMenu |
MagicInfoApi.EnvironmentControllerApi | updateDashboardPriorityUsingPUT | PUT /restapi/v1.0/ems/dashboard | updateDashboardPriority |
MagicInfoApi.EnvironmentControllerApi | updateNoticeInfoUsingPUT1 | PUT /restapi/v1.0/ems/dashboard/notice/edit | updateNoticeInfo |
MagicInfoApi.MessageScheduleControllerApi | copyMessageScheduleUsingPUT1 | PUT /restapi/v1.0/dms/schedule/messages/{messageId}/copy | copyMessageSchedule |
MagicInfoApi.MessageScheduleControllerApi | createMessageScheduleUsingPOST | POST /restapi/v1.0/dms/schedule/messages | createMessageSchedule |
MagicInfoApi.MessageScheduleControllerApi | deleteMessageScheduleUsingDELETE1 | DELETE /restapi/v1.0/dms/schedule/messages/{messageId} | deleteMessageSchedule |
MagicInfoApi.MessageScheduleControllerApi | deployMessageScheduleUsingPUT | PUT /restapi/v1.0/dms/schedule/messages/{messageId}/deploy | deployMessageSchedule |
MagicInfoApi.MessageScheduleControllerApi | editMessageScheduleUsingPUT1 | PUT /restapi/v1.0/dms/schedule/messages/{messageId} | editMessageSchedule |
MagicInfoApi.MessageScheduleControllerApi | getMessageInfoUsingGET1 | GET /restapi/v1.0/dms/schedule/messages/{messageId} | getMessageInfo |
MagicInfoApi.MessageScheduleControllerApi | listAllMessageScheduleUsingGET | GET /restapi/v1.0/dms/schedule/messages | listAllMessageSchedule |
MagicInfoApi.MessageScheduleControllerApi | listMessageUsingPOST | POST /restapi/v1.0/dms/schedule/messages/filter | listMessage |
MagicInfoApi.MessageScheduleGroupControllerApi | getChildGroupsUsingGET3 | GET /restapi/v1.0/dms/schedule/messages/groups/{groupId}/child | getChildGroups |
MagicInfoApi.MessageScheduleGroupControllerApi | getRootGroupsUsingGET2 | GET /restapi/v1.0/dms/schedule/messages/groups | getRootGroups |
MagicInfoApi.MessageScheduleGroupControllerApi | listMessageScheduleGroupInfoUsingGET | GET /restapi/v1.0/dms/schedule/messages/groups/{groupId} | listMessageScheduleGroupInfo |
MagicInfoApi.PlaylistControllerApi | copyPlaylistUsingPUT1 | PUT /restapi/v1.0/cms/playlists/{playlistId}/copy | copyPlaylist |
MagicInfoApi.PlaylistControllerApi | createPlaylistUsingPOST | POST /restapi/v1.0/cms/playlists | createPlaylist |
MagicInfoApi.PlaylistControllerApi | deletePlaylistUsingDELETE | DELETE /restapi/v1.0/cms/playlists/{playlistId} | deletePlaylist |
MagicInfoApi.PlaylistControllerApi | editPlaylistUsingPUT | PUT /restapi/v1.0/cms/playlists/{playlistId} | editPlaylist |
MagicInfoApi.PlaylistControllerApi | getActivePlaylistInfoUsingGET | GET /restapi/v1.0/cms/playlists/{playlistId} | getActivePlaylistInfo |
MagicInfoApi.PlaylistControllerApi | getDashboardPlaylistInfoUsingGET1 | GET /restapi/v1.0/cms/playlists/dashboard | getDashboardPlaylistInfo |
MagicInfoApi.PlaylistControllerApi | listAllPlaylistUsingGET1 | GET /restapi/v1.0/cms/playlists | listAllPlaylist |
MagicInfoApi.PlaylistControllerApi | listPlaylistUsingPOST1 | POST /restapi/v1.0/cms/playlists/filter | listPlaylist |
MagicInfoApi.PlaylistGroupControllerApi | getGroupUsingGET3 | GET /restapi/v1.0/cms/playlists/groups/{groupId} | getGroup |
MagicInfoApi.PlaylistGroupControllerApi | listChildGroupUsingGET2 | GET /restapi/v1.0/cms/playlists/groups/{groupId}/child | listChildGroup |
MagicInfoApi.PlaylistGroupControllerApi | listDefaultGroupUsingGET2 | GET /restapi/v1.0/cms/playlists/groups | listDefaultGroup |
MagicInfoApi.UserControllerApi | createUserSignUpUsingPOST | POST /restapi/v1.0/ums/users/signup | createUserSignUp |
MagicInfoApi.UserControllerApi | createUserUsingPOST | POST /restapi/v1.0/ums/users | createUser |
MagicInfoApi.UserControllerApi | listDashboardUserInfoUsingGET | GET /restapi/v1.0/ums/users/dashboard | listDashboardUserInfo |
MagicInfoApi.UserControllerApi | listMyInfoUsingGET | GET /restapi/v1.0/ums/users/me | Get specific admin |
MagicInfoApi.UserControllerApi | listUserOrganUsingGET1 | GET /restapi/v1.0/ums/users/organization | listUserOrgan |
MagicInfoApi.UserControllerApi | updateMyInfoUsingPUT1 | PUT /restapi/v1.0/ums/users/me | updateMyInfo |
MagicInfoApi.UserGroupControllerApi | listUserGroupChildUsingGET1 | GET /restapi/v1.0/ums/users/groups/{groupId}/child | listUserGroupChild |
MagicInfoApi.UserGroupControllerApi | listUserGroupInfoUsingGET1 | GET /restapi/v1.0/ums/users/groups/{groupId} | listUserGroupInfo |
MagicInfoApi.UserGroupControllerApi | listUserGroupOrganUsingGET1 | GET /restapi/v1.0/ums/users/groups | listUserGroupOrgan |
Documentation for Models
- MagicInfoApi.AuthResource
- MagicInfoApi.ContentApproveResource
- MagicInfoApi.ContentFilter
- MagicInfoApi.ContentScheduleItemResource
- MagicInfoApi.ContentScheduleResource
- MagicInfoApi.DeviceApproveResource
- MagicInfoApi.DeviceDisplayConfResource
- MagicInfoApi.DeviceDisplayConfSubResource
- MagicInfoApi.DeviceDisplayCustomLogoResource
- MagicInfoApi.DeviceDownloadServerResource
- MagicInfoApi.DeviceFilter
- MagicInfoApi.DeviceGeneralConfResource
- MagicInfoApi.DeviceLedCabinetResource
- MagicInfoApi.DeviceSecurityConfResource
- MagicInfoApi.DeviceSystemSetupConfResource
- MagicInfoApi.DeviceTimeClockConf
- MagicInfoApi.DeviceTimeHolidayResource
- MagicInfoApi.DeviceTimeTimerConf
- MagicInfoApi.DeviceTimeconfResource
- MagicInfoApi.EnvironmentNoticeFilter
- MagicInfoApi.EnvironmentPriorityFilter
- MagicInfoApi.Error
- MagicInfoApi.HashMapstringobject
- MagicInfoApi.Map
- MagicInfoApi.MessageResource
- MagicInfoApi.MessageScheduleFilter
- MagicInfoApi.MessageScheduleResource
- MagicInfoApi.PlaylistFilter
- MagicInfoApi.PlaylistItemResource
- MagicInfoApi.PlaylistResource
- MagicInfoApi.Property
- MagicInfoApi.Response
- MagicInfoApi.ResponseBody
- MagicInfoApi.ScheduleFilter
- MagicInfoApi.TagResource
- MagicInfoApi.Timestamp
- MagicInfoApi.TokenAuth
- MagicInfoApi.UserFilter
- MagicInfoApi.Xml
Documentation for Authorization
api_key
- Type: API key
- API key parameter name: api_key
- Location: HTTP header