// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/newimportOpenAPIClientlet body =// AnyCodable | OneinchAPI.approveCallData(body: body) { (response, error) inguard error ==nilelse {print(error)return }if(response) {dump(response) }}
Parameters
Name
Type
Description
Notes
body
AnyCodable
Return type
AnyCodable
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/newimportOpenAPIClientlet body =// AnyCodable | OneinchAPI.approveSpender(body: body) { (response, error) inguard error ==nilelse {print(error)return }if(response) {dump(response) }}
Parameters
Name
Type
Description
Notes
body
AnyCodable
Return type
AnyCodable
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/newimportOpenAPIClientlet body =// AnyCodable | OneinchAPI.protocols(body: body) { (response, error) inguard error ==nilelse {print(error)return }if(response) {dump(response) }}
Parameters
Name
Type
Description
Notes
body
AnyCodable
Return type
AnyCodable
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/newimportOpenAPIClientlet body =// AnyCodable | OneinchAPI.quote(body: body) { (response, error) inguard error ==nilelse {print(error)return }if(response) {dump(response) }}
Parameters
Name
Type
Description
Notes
body
AnyCodable
Return type
AnyCodable
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/newimportOpenAPIClientlet body =// AnyCodable | OneinchAPI.tokens(body: body) { (response, error) inguard error ==nilelse {print(error)return }if(response) {dump(response) }}
Parameters
Name
Type
Description
Notes
body
AnyCodable
Return type
AnyCodable
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]