@@ -28,7 +28,7 @@ Using Composer:
2828
2929Or add the following to your ` composer.json ` file:
3030
31- ```
31+ ``` json
3232"require" : {
3333 "hbll-collection-development/scopus-api" : " ^1.0"
3434}
@@ -38,7 +38,7 @@ Or add the following to your `composer.json` file:
3838
3939For all API calls, you will need to include the Composer autoload file:
4040
41- ```
41+ ``` php
4242require_once 'path/to/vendor/autoload.php';
4343```
4444
@@ -50,7 +50,7 @@ Method names mirror the names of the query parameters as outlined in the API doc
5050
5151API Documentation: https://api.elsevier.com/documentation/AffiliationSearchAPI.wadl
5252
53- ```
53+ ``` php
5454$affiliationSearch = new \Scopus\AffiliationSearch('API-KEY');
5555
5656$results = $affiliationSearch
@@ -61,7 +61,7 @@ $results = $affiliationSearch
6161
6262If you want ` XML ` instead, you can do the following:
6363
64- ```
64+ ``` php
6565$results = $affiliationSearch
6666 ->query('AFFIL(Brigham Young University)')
6767 ->count(1)
@@ -152,7 +152,7 @@ Example `JSON` response:
152152
153153API Documentation: https://api.elsevier.com/documentation/AuthorSearchAPI.wadl
154154
155- ```
155+ ``` php
156156$authorSearch = new \Scopus\AuthorSearch('API-KEY');
157157
158158$results = $authorSearch
@@ -258,7 +258,7 @@ Example `JSON` response:
258258
259259API Documentation: https://api.elsevier.com/documentation/ScopusSearchAPI.wadl
260260
261- ```
261+ ``` php
262262$scopusSearch = new \Scopus\ScopusSearch('API-KEY');
263263
264264$results = $scopusSearch
@@ -366,7 +366,7 @@ Example `JSON` response:
366366
367367API Documentation: https://api.elsevier.com/documentation/AbstractRetrievalAPI.wadl
368368
369- ```
369+ ``` php
370370$abstractRetrieval = new \Scopus\AbstractRetrieval('SCOPUS-ID', 'scopusId', 'API-KEY');
371371
372372$results = $abstractRetrieval
@@ -376,7 +376,7 @@ $results = $abstractRetrieval
376376
377377Other options include:
378378
379- ```
379+ ``` php
380380$abstractRetrieval = new \Scopus\AbstractRetrieval('EID', 'eid', 'API-KEY');
381381$abstractRetrieval = new \Scopus\AbstractRetrieval('DOI', 'doi', 'API-KEY');
382382$abstractRetrieval = new \Scopus\AbstractRetrieval('PII', 'pii', 'API-KEY');
@@ -386,7 +386,9 @@ $abstractRetrieval = new \Scopus\AbstractRetrieval('PUI', 'pui', 'API-KEY');
386386
387387For example:
388388
389- ` $abstractRetrieval = new \Scopus\AbstractRetrieval('85028623301', 'scopusId', 'API-KEY'); `
389+ ``` php
390+ $abstractRetrieval = new \Scopus\AbstractRetrieval('85028623301', 'scopusId', 'API-KEY');
391+ ```
390392
391393Example ` JSON ` response:
392394
0 commit comments