File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ public struct OAuthCredentials {
30
30
}
31
31
32
32
internal struct OAuthParameterKeys {
33
- static let id = " id "
34
- static let secret = " secret "
33
+ static let id = " clientId "
34
+ static let secret = " clientSecret "
35
35
}
36
36
37
37
/// The `ClientError` enum describes domain specific errors for the `Client` class.
@@ -49,7 +49,7 @@ internal enum AuthenticationEndpoint: Endpoint {
49
49
50
50
var path : String {
51
51
switch self {
52
- case . authenticate: return " /authenticate "
52
+ case . authenticate: return " /accounts/login "
53
53
}
54
54
}
55
55
@@ -75,7 +75,7 @@ public class Client {
75
75
76
76
// MARK: - Properties
77
77
78
- internal let baseURLPath = " https://api-development .mywing.io/api /v2 "
78
+ internal let baseURLPath = " https://3rd-party-api .mywing.io/v2 "
79
79
80
80
/**
81
81
The OAuth credentials assigned to your application to access the Wing API. Used to authenticate with the Wing API
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ internal enum TestSessionEndpoint: Endpoint {
15
15
16
16
var path : String {
17
17
switch self {
18
- case . create: return " /patients/5yEwdO6MVR8ZA/ test-sessions "
18
+ case . create: return " /test-sessions "
19
19
case . retrieve( let patientId, let sessionId) : return " /patients/ \( patientId) /test-sessions/ \( sessionId) "
20
20
}
21
21
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class ClientTest: WingKitTestCase {
35
35
}
36
36
37
37
func testAuthenticationEndpointPath( ) {
38
- XCTAssertEqual ( AuthenticationEndpoint . authenticate. path, " /authenticate " )
38
+ XCTAssertEqual ( AuthenticationEndpoint . authenticate. path, " /accounts/login " )
39
39
}
40
40
41
41
func testAuthenticationEndpointMethod( ) {
You can’t perform that action at this time.
0 commit comments