Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yageek/rtswift
:satellite: RTS API Swift Client
https://github.com/yageek/rtswift
opendata swift4
Last synced: about 2 months ago
JSON representation
:satellite: RTS API Swift Client
- Host: GitHub
- URL: https://github.com/yageek/rtswift
- Owner: yageek
- License: mit
- Created: 2018-03-07T16:48:45.000Z (almost 7 years ago)
- Default Branch: develop
- Last Pushed: 2018-03-13T21:48:41.000Z (almost 7 years ago)
- Last Synced: 2024-10-20T22:26:46.764Z (3 months ago)
- Topics: opendata, swift4
- Language: Swift
- Homepage: https://developer.srgssr.ch
- Size: 140 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# RTSwift
An open-source swift library to query the API from the RTS. More informations about the differents APIs can be found at this URL: https://developer.srgssr.ch.
## Example
```swift
import RTSwift// KEY and SECRET can be found on your application page
let client = RTSClient(key: "KEY", secret: "SECRET")client.searchTVShows(bu: .rts, query: "russie", success: { (result: SRGSSRVideo.TVShowsSearchResult) in
print("List of TVShows:")
for element in result.list {
print("ID: \(element.id)")
print("Title: \(element.title)")
print("Transmission: \(element.transmission)")
}}) { (error) in
print("Error: \(error.localizedDescription)")
}
```## Dependencies
- CwlMutex.swift - Matt Gallagher