Skip to content

Commit 79805c7

Browse files
authored
Change Step 0 in How to retrieve PIM structure
1 parent 4550970 commit 79805c7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/apps/how-to-retrieve-pim-structure.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ Get the big picture <a href="https://api.akeneo.com/getting-started/synchronize-
5555

5656
## Fetch the PIM structure
5757

58-
### 0. Setup the client for API
58+
### 0. Initialization
5959

60-
If you haven't set your client yet, please:
61-
- Install Guzzle by following the <a href="https://docs.guzzlephp.org/en/stable/overview.html#installation" target="_blank" rel="noopener noreferrer">official documentation</a>
62-
- Set your client for querying Akeneo API as follows:
63-
64-
```php [activate:PHP]
60+
```php [activate:PHP]
6561

6662
$pimUrl = 'https://url-of-your-pim.com';
6763
$appToken = 'your_app_token'; // Token provided during oAuth steps
6864

65+
// If you haven't done it yet, please follow the Guzzle official documentation for installing the client
66+
// https://docs.guzzlephp.org/en/stable/overview.html#installation
67+
68+
// Set your client for querying Akeneo API as follows
6969
$client = new \GuzzleHttp\Client([
7070
'base_uri' => $pimUrl,
7171
'headers' => ['Authorization' => 'Bearer ' . $appToken],
@@ -80,7 +80,7 @@ Workflow
8080

8181
Collect channel from PIM API:
8282

83-
```php
83+
```php [activate:PHP]
8484

8585
const API_URL = '/api/rest/v1/channels/%s';
8686

@@ -98,7 +98,7 @@ $channel = json_decode($response->getBody()->getContents(), true);
9898

9999
The retrieved channel resource looks like this:
100100

101-
```php
101+
```php [activate:PHP]
102102

103103
var_export($channel);
104104

@@ -131,7 +131,7 @@ We advise storing in your App locales, currencies, and root category.
131131
- Currencies will be used to parse product values price attribute type,
132132
- Root category property will allow retrieving the whole category tree linked to the channel.
133133

134-
```php
134+
```php [activate:PHP]
135135

136136
storeCurrencies($channel['currencies']);
137137
storeLocales($channel['locales']);

0 commit comments

Comments
 (0)