Move oauth1 provider implementation fo main TwitterFeedProvider class.
This commit is contained in:
parent
42853fe487
commit
d883981afd
|
@ -53,6 +53,21 @@ public struct TwitterFeedProvider {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
extension TwitterFeedProvider: OAuth1SwiftProvider {
|
||||||
|
|
||||||
|
public static var oauth1Swift: OAuth1Swift {
|
||||||
|
return OAuth1Swift(
|
||||||
|
consumerKey: Secrets.twitterConsumerKey,
|
||||||
|
consumerSecret: Secrets.twitterConsumerSecret,
|
||||||
|
requestTokenUrl: "https://api.twitter.com/oauth/request_token",
|
||||||
|
authorizeUrl: "https://api.twitter.com/oauth/authorize",
|
||||||
|
accessTokenUrl: "https://api.twitter.com/oauth/access_token"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: FeedProvider
|
// MARK: FeedProvider
|
||||||
|
|
||||||
extension TwitterFeedProvider: FeedProvider {
|
extension TwitterFeedProvider: FeedProvider {
|
||||||
|
|
|
@ -36,17 +36,3 @@ extension TwitterFeedProvider: ExtensionPoint {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension TwitterFeedProvider: OAuth1SwiftProvider {
|
|
||||||
|
|
||||||
public static var oauth1Swift: OAuth1Swift {
|
|
||||||
return OAuth1Swift(
|
|
||||||
consumerKey: Secrets.twitterConsumerKey,
|
|
||||||
consumerSecret: Secrets.twitterConsumerSecret,
|
|
||||||
requestTokenUrl: "https://api.twitter.com/oauth/request_token",
|
|
||||||
authorizeUrl: "https://api.twitter.com/oauth/authorize",
|
|
||||||
accessTokenUrl: "https://api.twitter.com/oauth/access_token"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue