Skip to content

Commit

Permalink
Fix single promo get
Browse files Browse the repository at this point in the history
  • Loading branch information
marcguyer committed Jul 12, 2012
1 parent 6c72ba4 commit 73672ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ public function getPromotions(array $filters = null) {
public function getPromotion($code, $id = null) {
$this->_requireIdentifier($code, $id);
return new CheddarGetter_Response(
$this->request('/promotions/get' . (($id) ? '/id/'.$id : ''), array('couponCodes' => array($code)) )
$this->request('/promotions/get' . (($id) ? '/id/'.$id : '/code/' . urlencode($code)))
);
}

Expand Down

0 comments on commit 73672ac

Please sign in to comment.