This repository was archived by the owner on Jun 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
public typealias TwitterAuthAPI =
2
2
TwitterAuthAPIResource
3
- & OAuth11aAPI
3
+ & OAuth10aAPI
4
4
& OAuth20API
5
5
6
6
public protocol TwitterAuthAPIResource {
7
- var oauth11a : OAuth11aAPI { get }
7
+ var oauth10a : OAuth10aAPI { get }
8
8
var oauth20 : OAuth20API { get }
9
9
}
10
10
11
11
extension TwitterAPIKit . TwitterAuthAPIImpl : TwitterAuthAPIResource {
12
- var oauth11a : OAuth11aAPI { return self }
12
+ var oauth10a : OAuth10aAPI { return self }
13
13
var oauth20 : OAuth20API { return self }
14
14
}
Original file line number Diff line number Diff line change 1
1
import Foundation
2
2
3
- public protocol OAuth11aAPI {
3
+ public protocol OAuth10aAPI {
4
4
/// https://developer.twitter.com/en/docs/authentication/api-reference/request_token
5
5
func postOAuthRequestTokenData(
6
6
_ request: PostOAuthRequestTokenRequestV1
@@ -33,7 +33,7 @@ public protocol OAuth11aAPI {
33
33
) -> TwitterAPISessionJSONTask
34
34
}
35
35
36
- extension TwitterAPIKit . TwitterAuthAPIImpl : OAuth11aAPI {
36
+ extension TwitterAPIKit . TwitterAuthAPIImpl : OAuth10aAPI {
37
37
public func postOAuthRequestTokenData(
38
38
_ request: PostOAuthRequestTokenRequestV1
39
39
) -> TwitterAPISessionDataTask {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class TwitterAuthAPITests: XCTestCase {
22
22
}
23
23
24
24
func testMakeOAuthAuthorizeURL( ) throws {
25
- let url = client. oauth11a . makeOAuthAuthorizeURL (
25
+ let url = client. oauth10a . makeOAuthAuthorizeURL (
26
26
. init( oauthToken: " token " , forceLogin: true , screenName: " name " )
27
27
)
28
28
XCTAssertEqual (
@@ -31,7 +31,7 @@ class TwitterAuthAPITests: XCTestCase {
31
31
}
32
32
33
33
func testMakeOAuthAuthenticateURL( ) throws {
34
- let url = client. oauth11a . makeOAuthAuthenticateURL (
34
+ let url = client. oauth10a . makeOAuthAuthenticateURL (
35
35
. init( oauthToken: " token " , forceLogin: true , screenName: " name " )
36
36
)
37
37
XCTAssertEqual (
You can’t perform that action at this time.
0 commit comments