Skip to content

Commit 21473e5

Browse files
committed
moving php lib into its own dir
1 parent 715e256 commit 21473e5

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
examples/config.php
1+
php/examples/config.php
File renamed without changes.
File renamed without changes.

lib/DPDCartApi.class.php renamed to php/lib/DPDCartApi.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ function getProducts($storefront_id=null)
3838
return $response['products'];
3939
}
4040

41+
function getProduct($id)
42+
{
43+
$response = $this->doApiRequest("/product/show", array("id" => $id));
44+
return $response['product'];
45+
}
4146

4247
function doApiRequest($action, $params, $method='POST')
4348
{

0 commit comments

Comments
 (0)