Information about devices (for iOS)
The data about devices with iOS should contain "device" property with value from the table above.
For example, the request with information about iPhone 6 Plus should looks like this:
curl -XPOST 'api.gameofwhales.com:8488/login' -H 'Accept-Version: 2.1.0' -H 'Content-Type: application/json' -H 'Content-Type: application/json' -d @- << EOF {"game": "$YOUR_GAME_KEY", "user": "3A15982E-C4CB-0000-0000-D88861BA0C49", "common": {"ip": "91.232.111.204", "locale": "en_EN", "platform": "ios", "store": "AppleAppStore", "version": "1.0.0", "expId": "5d2effe09236b00e38e34c3b"},"event": {"device":{"model": "iPhone", "device": "iPhone7,1"}}}} EOF
Device |
Value to send through REST API |
---|---|
Pod touch (5th generation) | "iPod5,1" |
iPod touch (6th generation) | "iPod7,1" |
iPod touch (7th generation) | "iPod9,1" |
iPhone 4 | one of "iPhone3,1", "iPhone3,2", "iPhone3,3" |
iPhone 4s | "iPhone4,1" |
iPhone 5 | one of "iPhone5,1", "iPhone5,2" |
iPhone 5c | one of "iPhone5,3", "iPhone5,4" |
iPhone 5s | one of "iPhone6,1", "iPhone6,2" |
iPhone 6 | "iPhone7,2" |
iPhone 6 Plus | "iPhone7,1" |
iPhone 6s | "iPhone8,1" |
iPhone 6s Plus | "iPhone8,2" |
iPhone 7 | one of "iPhone9,1", "iPhone9,3" |
iPhone 7 Plus | one of "iPhone9,2", "iPhone9,4" |
iPhone SE | "iPhone8,4" |
iPhone 8 | one of "iPhone10,1", "iPhone10,4" |
iPhone 8 Plus | one of "iPhone10,2", "iPhone10,5" |
iPhone X | one of "iPhone10,3", "iPhone10,6" |
iPhone XS | "iPhone11,2" |
iPhone XS Max | one of "iPhone11,4", "iPhone11,6" |
iPhone XR | "iPhone11,8" |
iPhone 11 | "iPhone12,1" |
iPhone 11 Pro | "iPhone12,3" |
iPhone 11 Pro Max | "iPhone12,5" |
iPad 2 | one of "iPad2,1", "iPad2,2", "iPad2,3", "iPad2,4" |
iPad (3rd generation) | one of "iPad3,1", "iPad3,2", "iPad3,3" |
iPad (4th generation) | one of "iPad3,4", "iPad3,5", "iPad3,6" |
iPad (5th generation) | one of "iPad6,11", "iPad6,12" |
iPad (6th generation) | one of "iPad7,5", "iPad7,6" |
iPad (7th generation) | one of "iPad7,11", "iPad7,12" |
iPad Air | one of "iPad4,1", "iPad4,2", "iPad4,3" |
iPad Air 2 | one of "iPad5,3", "iPad5,4" |
iPad Air (3rd generation) | one of "iPad11,4", "iPad11,5" |
iPad mini | one of "iPad2,5", "iPad2,6", "iPad2,7" |
iPad mini 2 | one of "iPad4,4", "iPad4,5", "iPad4,6" |
iPad mini 3 | one of "iPad4,7", "iPad4,8", "iPad4,9" |
iPad mini 4 | one of "iPad5,1", "iPad5,2" |
iPad mini (5th generation) | one of "iPad11,1", "iPad11,2" |
iPad Pro (9.7-inch) | one of "iPad6,3", "iPad6,4" |
iPad Pro (12.9-inch) | one of "iPad6,7", "iPad6,8" |
iPad Pro (12.9-inch) (2nd generation) | one of "iPad7,1", "iPad7,2" |
iPad Pro (10.5-inch) | one of "iPad7,3", "iPad7,4" |
iPad Pro (11-inch) | one of "iPad8,1", "iPad8,2", "iPad8,3", "iPad8,4" |
iPad Pro (12.9-inch) (3rd generation) | one of "iPad8,5", "iPad8,6", "iPad8,7", "iPad8,8" |
Apple TV | "AppleTV5,3" |
Apple TV 4K | "AppleTV6,2" |
HomePod | "AudioAccessory1,1" |