From ec7c41ae1b77e8f2259b789b4b67288bfef32a51 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Wed, 9 Oct 2019 05:14:57 +0200 Subject: [PATCH 1/3] README: add highlighting of ABAP code --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f0cb1d7..451c26a 100644 --- a/README.md +++ b/README.md @@ -200,7 +200,7 @@ The following Watson services are currently supported: Using the client library requires two steps: 1. Create an instance of the Watson service wrapper ABAP class by calling method `zcl_ibmc_service_ext=>get_instance`. -``` +```abap data: lo_service_class type . @@ -214,7 +214,7 @@ Using the client library requires two steps: ``` 2. Call the Watson service API endpoint by invoking the corresponding class method. -``` +```abap try. lo_service_class->method( exporting @@ -229,7 +229,7 @@ Using the client library requires two steps:
Text to Speech Example -``` +```abap * List all voices provided by Watson Text to Speech " declare variables @@ -269,7 +269,7 @@ Using the client library requires two steps:
Natural Language Understanding Example -``` +```abap * Analyze www.ibm.com using Watson Natural Language Understanding " declare variables @@ -318,7 +318,7 @@ Using the client library requires two steps:
Personality Insights Example -``` +```abap * Analyze profile using example text using Watson Personality Insights " declare variables @@ -375,7 +375,7 @@ Using the client library requires two steps:
Language Translator Example -``` +```abap * Translate text from English to German using Watson Language Translator " declare variables From 5f2d79181158c3dc83adbdf7f866264d04cb8490 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Wed, 9 Oct 2019 05:15:57 +0200 Subject: [PATCH 2/3] another one --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 451c26a..3609882 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,7 @@ Service credentials and other parameters that must be specified at Watson servic Identity and Access Management (IAM) is a bearer-token based authentication method. Token management is either performed by the ABAP SDK or must be implemented by the SDK user.
If username / password or apikey are provided for method `zcl_ibmc_service_ext=>get_instance()`, the ABAP SDK under the cover generates a bearer-token when needed and refreshes it when it is about to expire.
If neither username / password nor apikey are provided for method `zcl_ibmc_service_ext=>get_instance()`, the ABAP SDK user must implement an individual token management. Before a service method is called the first time, a valid bearer-token must be provided to the Watson service wrapper ABAP class instance as follows: -``` +```abap lo_service_class->set_bearer_token( i_bearer_token = '...' ). ``` Afterwards, service methods can be called as long as the provided token is valid. When the token has expired, the method above must be called again with a new (refreshed) bearer-token as parameter. From 6b39868799dc97dcf1a4c0db7ab6bd8f16e812bc Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Wed, 9 Oct 2019 05:17:32 +0200 Subject: [PATCH 3/3] fix indentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3609882..f36f4ee 100644 --- a/README.md +++ b/README.md @@ -209,8 +209,8 @@ Using the client library requires two steps: i_host = i_apikey = ... - importing - eo_instance = lo_service_class ). + importing + eo_instance = lo_service_class ). ``` 2. Call the Watson service API endpoint by invoking the corresponding class method.