@@ -13,10 +13,11 @@ open class AuthorizationV4Endpoints {
13
13
/**
14
14
Deletes the unique access token identified in the request from the associate user's profile.
15
15
16
+ - parameter token: (path)
16
17
- parameter completion: completion handler to receive the data and the error objects
17
18
*/
18
- open class func deleteToken( completion: @escaping ( ( _ data: Void ? , _ error: Error ? ) -> Void ) ) {
19
- deleteTokenWithRequestBuilder ( ) . execute { ( response, error) -> Void in
19
+ open class func deleteToken( token : String , completion: @escaping ( ( _ data: Void ? , _ error: Error ? ) -> Void ) ) {
20
+ deleteTokenWithRequestBuilder ( token : token ) . execute { ( response, error) -> Void in
20
21
if error == nil {
21
22
completion ( ( ) , error)
22
23
} else {
@@ -28,7 +29,7 @@ open class AuthorizationV4Endpoints {
28
29
29
30
/**
30
31
Deletes the unique access token identified in the request from the associate user's profile.
31
- - DELETE /v4/token
32
+ - DELETE /v4/token/{token}
32
33
33
34
- API Key:
34
35
- type: apiKey access_token (QUERY)
@@ -39,11 +40,15 @@ open class AuthorizationV4Endpoints {
39
40
- API Key:
40
41
- type: apiKey access_token (QUERY)
41
42
- name: QUERY
43
+ - parameter token: (path)
42
44
43
45
- returns: RequestBuilder<Void>
44
46
*/
45
- open class func deleteTokenWithRequestBuilder( ) -> RequestBuilder < Void > {
46
- let path = " /v4/token "
47
+ open class func deleteTokenWithRequestBuilder( token: String ) -> RequestBuilder < Void > {
48
+ var path = " /v4/token/{token} "
49
+ let tokenPreEscape = " \( token) "
50
+ let tokenPostEscape = tokenPreEscape. addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
51
+ path = path. replacingOccurrences ( of: " {token} " , with: tokenPostEscape, options: . literal, range: nil )
47
52
let URLString = ExtoleConsumerAPI . basePath + path
48
53
let parameters : [ String : Any ] ? = nil
49
54
let url = URLComponents ( string: URLString)
@@ -56,11 +61,10 @@ open class AuthorizationV4Endpoints {
56
61
/**
57
62
Deletes the unique access token identified in the request from the associate user's profile.
58
63
59
- - parameter token: (path)
60
64
- parameter completion: completion handler to receive the data and the error objects
61
65
*/
62
- open class func deleteToken( token : String , completion: @escaping ( ( _ data: Void ? , _ error: Error ? ) -> Void ) ) {
63
- deleteTokenWithRequestBuilder ( token : token ) . execute { ( response, error) -> Void in
66
+ open class func deleteToken( completion: @escaping ( ( _ data: Void ? , _ error: Error ? ) -> Void ) ) {
67
+ deleteTokenWithRequestBuilder ( ) . execute { ( response, error) -> Void in
64
68
if error == nil {
65
69
completion ( ( ) , error)
66
70
} else {
@@ -72,7 +76,7 @@ open class AuthorizationV4Endpoints {
72
76
73
77
/**
74
78
Deletes the unique access token identified in the request from the associate user's profile.
75
- - DELETE /v4/token/{token}
79
+ - DELETE /v4/token
76
80
77
81
- API Key:
78
82
- type: apiKey access_token (QUERY)
@@ -83,15 +87,11 @@ open class AuthorizationV4Endpoints {
83
87
- API Key:
84
88
- type: apiKey access_token (QUERY)
85
89
- name: QUERY
86
- - parameter token: (path)
87
90
88
91
- returns: RequestBuilder<Void>
89
92
*/
90
- open class func deleteTokenWithRequestBuilder( token: String ) -> RequestBuilder < Void > {
91
- var path = " /v4/token/{token} "
92
- let tokenPreEscape = " \( token) "
93
- let tokenPostEscape = tokenPreEscape. addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
94
- path = path. replacingOccurrences ( of: " {token} " , with: tokenPostEscape, options: . literal, range: nil )
93
+ open class func deleteTokenWithRequestBuilder( ) -> RequestBuilder < Void > {
94
+ let path = " /v4/token "
95
95
let URLString = ExtoleConsumerAPI . basePath + path
96
96
let parameters : [ String : Any ] ? = nil
97
97
let url = URLComponents ( string: URLString)
0 commit comments