microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/extension/appcenter/lib/app-center-node-client/README.md
36lines · modecode
| 1 | # Introduction |
| 2 | AppCenter NodeJS client generated by AutoRest and swagger-tools. |
| 3 | |
| 4 | # Getting Started |
| 5 | To install use local installation or npm package. |
| 6 | |
| 7 | # Build and Test |
| 8 | No building required for this package. |
| 9 | |
| 10 | # Contribute |
| 11 | DO NOT contribute to this repo because it contains automatically generated content. |
| 12 | Contribute to https://msmobilecenter.visualstudio.com/Mobile-Center/Build/_git/swagger-tools. |
| 13 | |
| 14 | # How to use |
| 15 | |
| 16 | 1) Simple client usage |
| 17 | |
| 18 | ``` |
| 19 | import { AppCenterClient } from 'app-center-node-client'; |
| 20 | |
| 21 | const client = new AppCenterClient('api token here'); |
| 22 | |
| 23 | console.log(client.account.apps.create({ |
| 24 | displayName: 'test', |
| 25 | os: 'iOS', |
| 26 | platform: 'mobile' |
| 27 | })); |
| 28 | ``` |
| 29 | |
| 30 | 2) Importing models |
| 31 | |
| 32 | Import models from `/models` index path. |
| 33 | |
| 34 | ``` |
| 35 | import { FileAsset } from 'app-center-node-client/models'; |
| 36 | ``` |