javascript
ClassDojoReactNativeApi - JavaScript client for javascript
Contract for communicating from the React Native app to the Native platform. https://electrode.gitbooks.io/electrode-native/content/platform-parts/apis.html#
This SDK is automatically generated by Electrode Native API generator.
It uses swagger to gernerate bridge code for Swift, Android and React Native.
- API version: 1.0.0
- Package version: 1.0.0
Installation
npm
To publish the library as a npm,
please follow the procedure in "Publishing npm packages".
Then install it via:
npm install javascript --save
git
If the library is hosted at a git repository, e.g.
https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
Getting Started
Please follow the installation instruction and execute the following JS code:
import { ClassDojoReactNativeApi } from 'javascript';
const api = new ClassDojoReactNativeApi.NativeApi()
api.logEvent(logEvent).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Documentation for API Endpoints
All URIs are relative to https://virtserver.swaggerhub.com/ClassDojo/Electrode-Native/1.0.0
Class | Method | request type | Description |
---|
ClassDojoReactNativeApi.NativeApi | logEvent | request /logEvent | Log tracking events |
Documentation for Models
Documentation for Authorization
All endpoints do not require authorization.