public function getPromotion($code, $id = null)
    {
        $this->_requireIdentifier($code, $id);
        return new CheddarGetter_Response(
                                                                                    $this->request('/promotions/get' . (($id) ? '/id/'.$id : '/code/' . urlencode($code)))
                                                                                );
    }
public function getPromotion($code, $id = null)
    {
        $this->_requireIdentifier($code, $id);
        return new CheddarGetter_Response(
                                                                                    $this->request('/promotions/get' . (($id) ? '/id/'.$id : '/code/' . urlencode($code)))
                                                                                );
    }
public function getPromotion ( $ code , $ id = null ) { $ this -> _requireIdentifier ( $ code , $ id ) ; return new CheddarGetter_Response ( $ this -> request ( '/promotions/get' . ( ( $ id ) ? '/id/' . $ id : '/code/' . urlencode ( $ code ) ) ) ) ; }
Get a single promotion

@link https://cheddargetter.com/developers#single-promotion
@param string $code Coupon code
@param string|null $id CG id for the promotion
@return CheddarGetter_Response
@throws CheddarGetter_Response_Exception
Get a single promotion