qminder / swift-api Goto Github PK
View Code? Open in Web Editor NEWQminder API for iOS, tvOS, macOS, watchOS.
Home Page: https://www.qminder.com/
License: MIT License
Qminder API for iOS, tvOS, macOS, watchOS.
Home Page: https://www.qminder.com/
License: MIT License
{
"total_events": 1,
"page": 0,
"events": [
{
"raw": "{"rawmsg":"onDisconnected = Optional(Error Domain=WebSocket Code=1001 \\"The web application is stopping\\" UserInfo={NSLocalizedDescription=The web application is stopping})","sessionid":"811823","devicename":"Apple TV","lang":"en-US","devicemodel":"Apple TV","sourcelocation":"ScreenViewController.swift:1025","level":"ERROR","appname":"qminder-tv","timestamp":"2017-04-27T07:00:34.746Z","osversion":"10.2","appversion":"20170426.173650"}",
"logtypes": [
"json"
],
"timestamp": 1493276434746,
"unparsed": null,
"logmsg": "{"rawmsg":"onDisconnected = Optional(Error Domain=WebSocket Code=1001 \\"The web application is stopping\\" UserInfo={NSLocalizedDescription=The web application is stopping})","sessionid":"811823","devicename":"Apple TV","lang":"en-US","devicemodel":"Apple TV","sourcelocation":"ScreenViewController.swift:1025","level":"ERROR","appname":"qminder-tv","timestamp":"2017-04-27T07:00:34.746Z","osversion":"10.2","appversion":"20170426.173650"}",
"id": "ea82f83b-2b1b-11e7-80b4-0a269df17f5b",
"tags": [
"apple-tv"
],
"event": {
"json": {
"lang": "en-US",
"devicename": "Apple TV",
"devicemodel": "Apple TV",
"level": "ERROR",
"timestamp": "2017-04-27T07:00:34.746Z",
"appname": "qminder-tv",
"appversion": "20170426.173650",
"sessionid": "811823",
"rawmsg": "onDisconnected = Optional(Error Domain=WebSocket Code=1001 "The web application is stopping" UserInfo={NSLocalizedDescription=The web application is stopping})",
"osversion": "10.2",
"sourcelocation": "ScreenViewController.swift:1025"
},
"http": {
"clientHost": "80.235.115.84",
"contentType": "application/x-www-form-urlencoded"
}
}
}
]
}
iOS, macOS, tvOS
Idea from RxSwift
Use when API Key is known. Some calls don't require API key
Add social links
Link to Qminder API specs instead of website
Can use protocols + compositions https://gist.github.com/AliSoftware/9e4946c8b6038572d678
Lines changed event takes locationId as Int not JSON object.
{subscriptionId:ZgUROHanBE70tBZRMRh4Z86BLx6Z2b,messageId:3,data:{id:24505134,status:NEW,source:MANUAL,line:62633,firstName:^*&%*((*,created:{date:2017-02-17T08:52:33Z}}}
{
"statusCode": 200,
"id": 12363,
"name": "TV",
"theme": "lyft"
}
Proper error passing with status code, network connection etc.
iOS, tvOS, macOS
Examples: Alamofire, SwiftyJSON
Example: Alamofire
Endpoint: https://api.qminder.com/v1/tv/{id}/emptystate
This API endpoint should be called only when there are no tickets to show.
When called, this endpoint will send a reply in the form of
{
"statusCode": 200,
"layout": "simple",
"message": ""
}
Possible values for "layout" are: "simple"
Possible values for message are:
Use Node.js http://www.eikospartners.com/blog/how-to-mock-web-servers-using-node.js-part-2-websockets
Resets the timer to reconnect to websockets
Use Dictionary instead
settings.lines as array of selected lines
WARN | xcodebuild: /Users/travis/build/Qminder/swift-api/QminderAPI/Classes/QminderEvents.swift:236:23: warning: 'parse' is deprecated: Use instead
init(parseJSON: )``
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.