devicehub

command module
v0.0.0-...-1b2d93c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2017 License: MIT Imports: 6 Imported by: 0

README

Device Hub

Search mobile device model info.

Build

$ glide update && glide install && go build

How To Run?

Docker is recommended:

$ docker run --rm -ti -p 3000:3000 jjeffcaii/devicehub:latest

Restful Docs

Example: search for iPhone7,2

 $ curl -X GET \
    -H "Content-Type: application/json" \
    "http://127.0.0.1:3000/iphone7,2"

It will return JSON string:

"iPhone 6"

FAQ

Q: Where can I get latest device models?

A: Just execute script below.

$ 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL