Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yusukeiwaki/relax2-androidmanagement-api
https://github.com/yusukeiwaki/relax2-androidmanagement-api
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yusukeiwaki/relax2-androidmanagement-api
- Owner: YusukeIwaki
- Created: 2022-07-18T11:45:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-19T03:07:33.000Z (over 2 years ago)
- Last Synced: 2024-10-18T08:18:25.350Z (3 months ago)
- Language: Ruby
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AndroidManagement v1 client based on relax2.
## Usage
### Installation
```
gem 'relax2-androidmanagement', git: 'https://github.com/YusukeIwaki/relax2-androidmanagement-api.git'
```and then hit `bundle install --binstubs`.
### Configuration
```
$ bin/androidmanagement configure ~/path/to/service_account_keyfile.json
```### Execute GET request
```
$ bin/androidmanagement GET /enterprises?project_id={project_id}{
"enterprises": [
{
"name": "enterprises/LC01??????c",
"enterpriseDisplayName": "YusukeIwaki"
},
{
"name": "enterprises/LC02??????9",
"enterpriseDisplayName": "test_enterprise"
}
]
}
```### Execute POST request
```
$ echo "{ enterpriseDisplayName: 'YusukeIwaki' }" | bin/androidmanagement POST /enterprises projectId={project_id} agreementAccepted=true{
"name": "enterprises/LC01??????c",
"enterpriseDisplayName": "YusukeIwaki"
}
```