Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jjeffcaii/devicehub
search mobile device models.
https://github.com/jjeffcaii/devicehub
device-model devices
Last synced: about 2 months ago
JSON representation
search mobile device models.
- Host: GitHub
- URL: https://github.com/jjeffcaii/devicehub
- Owner: jjeffcaii
- License: mit
- Created: 2017-07-31T09:38:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T09:56:57.000Z (over 7 years ago)
- Last Synced: 2024-06-21T15:37:20.104Z (6 months ago)
- Topics: device-model, devices
- Language: Go
- Size: 137 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Device Hub
Search mobile device model info.## Build
```shell
$ glide update && glide install && go build
```## How To Run?
Docker is recommended:
```shell
$ docker run --rm -ti -p 3000:3000 jjeffcaii/devicehub:latest
```## Restful Docs
Example: search for `iPhone7,2`
```shell
$ curl -X GET \
-H "Content-Type: application/json" \
"http://127.0.0.1:3000/iphone7,2"
```It will return JSON string:
```json
"iPhone 6"
```## FAQ
> Q: Where can I get latest device models?
> A: Just execute script below.
```shell
$ curl http://storage.googleapis.com/play_public/supported_devices.csv | iconv -f UTF-16 -t UTF-8 > db/android.txt
$ curl -o db/ios.txt http://7xpeg1.com1.z0.glb.clouddn.com/ios.devicemodels.properties
```