Skip to content

Commit 107eb65

Browse files
authored
Merge pull request #24096 from rbrainey/master
Publish tutorial: data-to-value-conn-concur-part01
2 parents ef43e2e + 980c328 commit 107eb65

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

tutorials/data-to-value-conn-concur-part01/data-to-value-conn-concur-part01.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author_profile: https://github.com/alphageek7443
44
keywords: tutorial
55
auto_validation: true
66
time: 20
7-
tags: [ software-product>sap-concur, tutorial>advanced ]
7+
tags: [ software-product>sap-concur, tutorial>advanced, software-product>sap-datasphere ]
88
primary_tag: software-product>sap-datasphere
99
parser: v2
1010
---
@@ -89,14 +89,12 @@ Visual Studio Code (or just VSCode) is a free source code editor developed and m
8989
3. Copy the below code to the file
9090

9191
```
92-
9392
###
9493
@hostname = <your-company-base_URI>
9594
@your-client_id = <your-client_id>
9695
@your-client_secret = <your-client_secret>
9796
@username = <your-company_uuid>
9897
@password = <your-company_request_token>
99-
10098
```
10199

102100
Replace the placeholder as per your application configuration **your-client_id**, **your-client_secret**, **your-company_uuid** and **your-company_request_token** you have generated in previous step.
@@ -111,7 +109,6 @@ The first time you request for a **refreshToken** This is used to get a new acce
111109
1. Copy below code just below the above code to Obtain a **refresh token** and store it to a variable.
112110

113111
```
114-
115112
### Obtain a Refresh token
116113
# @name refeshTokenCall
117114
POST {{hostname}}/oauth2/v0/token HTTP/1.1
@@ -128,7 +125,6 @@ client_id={{your-client_id}}
128125
129126
###
130127
@refeshToken = {{refeshTokenCall.response.body.refresh_token}}
131-
132128
```
133129

134130
### Obtain an Access Token
@@ -138,7 +134,6 @@ The Oauth2 service generates access tokens for authenticated applications. The t
138134
1. Copy below code just below the above code to Obtain a **access Token** and store it to a variable.
139135

140136
```
141-
142137
### Obtain an Access Token
143138
# @name accessTokenCall
144139
POST {{hostname}}/oauth2/v0/token HTTP/1.1
@@ -153,19 +148,16 @@ client_id={{your-client_id}}
153148
154149
###
155150
@accessToken = {{accessTokenCall.response.body.access_token}}
156-
157151
```
158152

159153
### Calling an API with the Access Token
160154
The base URI for all subsequent calls. Armed with the accessToken you can start making calls to an SAP Concur API. Here’s an example How you can retrieve Expense Report by utilizing the appropriate base URI with the access token.
161155

162156
```
163-
164157
### Get Expense Report
165158
# @name getExpenseReport
166159
GET {{hostname}}/api/v3.0/expense/reports?limit=100&user=ALL HTTP/1.1
167160
Authorization: Bearer {{accessToken}}
168-
169161
```
170162

171163
### Test it out

0 commit comments

Comments
 (0)