Skip to Content
0

API consume in SAP cloud platform integration services

Apr 10 at 10:16 PM

75

avatar image

Experts-

I have a question regarding consuming API into SAP cloud platform integration services to build iflows. I have the information of the API and API key for a user. I am not seeing any option in integration services to call the API directly using the API key like we do in POSTMAN client. I know API management is an option in SAP cloud platform but am not sure how to leverage the same. I know if we can create OData, REST and SOAP services the same can be consumed using API management but not sure the other way. Please, it would be appreciated if anyone can share the experience or taught on this issue.

Please let me know.

Regards

HS

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Morten Wittrock Apr 11 at 09:26 AM
0

Hi Hari

I'm assuming you need to pass your API key along to the service in either a query parameter or a header, and both are definitely doable in Cloud Integration.

Regards,

Morten

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thanks for the quick response. Do you have any documents or input to achieve this requirement? I know Groovy script is an option but it would be too technical for my customer. Is there any other way which will be simpler.

Please let me know.

Regards

HS

0
Hari Sonnenahalli

Hi Hari

A header can be added with a Content Modifier step. A query parameter can be added directly to the configuration of the service's receiver channel. If you have the API key in a property called MyAPIKey, you can add it to a query parameter called apikey as follows:

apikey=${property.MyAPIKey}

Regards,

Morten

0