Skip to content

Commit c7d3a68

Browse files
committedJun 20, 2014
Changed some small details
1 parent ab56d27 commit c7d3a68

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If you want to contribute to this library. You can do a Fork and a Pull request
3535
- Call to the class "Example" with key, format and debug_mode and a global function to load the classes
3636

3737
## Minimum requirements: ##
38-
1. PHP 5.3.2 (or higher)
38+
- PHP 5.3.2 (or higher)
3939

4040

4141
## Installation and running the example: ##
@@ -53,7 +53,7 @@ See the examples/ directory for examples of the key client features.
5353
```PHP
5454
<?php
5555
function __autoload($name) {
56-
require('/src/bolcom/' . $name . '.php');
56+
require('src/bolcom/' . $name . '.php');
5757
}
5858
$apiClient = new Client("YOUR_APP_KEY","RESPONSE_FORMAT","DEBUG_MODE");
5959
$response = $apiClient->getProduct('1002004010708531');

‎composer.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111
"homepage": "https://github.com/devbolcom/phpexamplecode-v4/contributors"
1212
}
1313
],
14-
"autoload": {
15-
"classmap": [
16-
"src/"
17-
]
18-
},
1914
"require": {
20-
"php": ">=5.0"
15+
"php": ">=5.3.2"
2116
},
17+
"autoload": {
18+
"psr-0": { "bolcom": "src/" }
19+
}
2220
"include-path": ["src/"]
2321
}

‎examples/index.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44
function __autoload($name) {
55
require('../src/bolcom/' . $name . '.php');
66
}
7-
7+
//please fill in your API-key in Example.php before running index.php
88
require_once 'Example.php';
99

10-
if(isset($_GET['productids']))
11-
$products = $_GET['productids']; else
12-
$products = array('9200000025729967','9200000010923880','9200000023791396','9200000015346463','9200000009731698','9000000011187767');
13-
1410
Example::run();
1511

1612
?>

0 commit comments

Comments
 (0)