public function pushSetSubscriptionState( $subscriptionId, $stateValue ) {
        $data = array(
            'id' => $subscriptionId,
            'state' => $stateValue
        );

        $requestResult = $this->sendRequest( 'push/subscriptions/state', 'POST', $data );

        return $this->handleResult( $requestResult );
    }
public function pushSetSubscriptionState( $subscriptionId, $stateValue ) {
        $data = array(
            'id' => $subscriptionId,
            'state' => $stateValue
        );

        $requestResult = $this->sendRequest( 'push/subscriptions/state', 'POST', $data );

        return $this->handleResult( $requestResult );
    }
public function pushSetSubscriptionState ( $ subscriptionId , $ stateValue ) { $ data = array ( 'id' => $ subscriptionId , 'state' => $ stateValue ) ; $ requestResult = $ this -> sendRequest ( 'push/subscriptions/state' , 'POST' , $ data ) ; return $ this -> handleResult ( $ requestResult ) ; }
Set state for subscription

@param $subscriptionId
@param $stateValue
@return mixed
Set state for subscription