chris-perkins / swifttwitch Goto Github PK
View Code? Open in Web Editor NEW๐พ The New Twitch API for iOS; wrapped in Swift goodness ๐พ
License: MIT License
๐พ The New Twitch API for iOS; wrapped in Swift goodness ๐พ
License: MIT License
Hi there,
It looks promising however when I install via cocoapod it get v0.1.0 which is missing 'clientID'.
So I tried your example project, run the pod install on it and it gets v0.1.2 (having clientID declared and handled...)
Then I tried to point at my pod file to pod 'SwiftTwitch', '~> 0.1.2' but it gets nothing. Saying what I have is up to date...
It's like my project thinks v0.1.0 is the latest and greatest but yours knows what's up...
Been fighting twitch for days... hahah
Can you help? All I want is the username, avatar and amount of followers.
Thanks in advance.
Flow
I have been working with your API for quite some time now and it has helped me a lot of my current project, but I am running into an issue I have been unable to solve.
Twitch.Streams.getStreams(userNames: [streamer]){ result in
switch result {
case .success(let data):
print("User not Live")
case .failure(let data, let response, let error):
print(data)
print(response)
print(error)
if let data = data,
let jsonObject = try? JSONSerialization.jsonObject(with: data, options: .allowFragments),
let jsonDict = jsonObject as? [String: Any]{
print(jsonDict)
}
}
}
The streamers that are offline show up in the success case, and the streamers who are online show up in the failure case, which is the opposite of what it should be. Because of this I cant access the StreamData because StreamData only works in the success case. Am I doing something wrong or is this is a problem with the framework itself?
In the current pod release, authentication fails due to Client ID not being passed in the request headers for API requests.
A fix has been applied to the repo, but I have not yet been able to update the pod itself (don't have a Mac rn). As a temporary workaround, you can add this project as a submodule.
I should be able to update the pod itself within the next week.
There are a few categories and endpoints that are currently not supported, or for which support is broken. I made the following list to keep track of what's working/broken/missing. I will spend some more time tomorrow refining it.
Note:
Hey, great job with the library!
I'm hoping to use it in TvOS, but I was greeted with this error when trying to install the pod:
$ pod install
Analyzing dependencies
[!] The platform of the target `my-project-here` (tvOS 13.0) is not compatible with `SwiftTwitch (0.1.0)`, which does not support `tvOS`.
Is there any particular reason this library doesn't support more platforms like MacOS, TvOS? I'd be happy to help port for support if needed, but I've never used Cocoapods before so I'm not sure where to look to see why it doesn't already work for more than iOS.
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.