public function setSubscription($owner, $repo, $subscribed, $ignored)
	{
		// Build the request path.
		$path = '/repos/' . $owner . '/' . $repo . '/subscription';

		$data = array(
			'subscribed' => $subscribed,
			'ignored'    => $ignored
		);

		return $this->processResponse(
			$this->client->put($this->fetchUrl($path), json_encode($data))
		);
	}
public function setSubscription($owner, $repo, $subscribed, $ignored)
	{
		// Build the request path.
		$path = '/repos/' . $owner . '/' . $repo . '/subscription';

		$data = array(
			'subscribed' => $subscribed,
			'ignored'    => $ignored
		);

		return $this->processResponse(
			$this->client->put($this->fetchUrl($path), json_encode($data))
		);
	}
public function setSubscription ( $ owner , $ repo , $ subscribed , $ ignored ) { // Build the request path. $ path = '/repos/' . $ owner . '/' . $ repo . '/subscription' ; $ data = array ( 'subscribed' => $ subscribed , 'ignored' => $ ignored ) ; return $ this -> processResponse ( $ this -> client -> put ( $ this -> fetchUrl ( $ path ) , json_encode ( $ data ) ) ) ; }
Set a Repository Subscription.

@param   string   $owner       Repository owner.
@param   string   $repo        Repository name.
@param   boolean  $subscribed  Determines if notifications should be received from this thread.
@param   boolean  $ignored     Determines if all notifications should be blocked from this thread.

@return  object

@since   1.0
Set a Repository Subscription .