public function declineTradeById($tradeOfferId)
    {
        $url = 'https://steamcommunity.com/tradeoffer/' . $tradeOfferId . '/decline';
        $referer = 'https://steamcommunity.com/tradeoffer/' . $tradeOfferId . '/';
        $params = [
            'sessionid' => $this->steamCommunity->getSessionId(),
            'serverid' => '1'
        ];
        $response = $this->steamCommunity->cURL($url, $referer, $params);
        $json = json_decode($response, true);
        if (is_null($json)) {
            return false;
        } else {
            return isset($json['tradeofferid']);
        }
    }
public function declineTradeById($tradeOfferId)
    {
        $url = 'https://steamcommunity.com/tradeoffer/' . $tradeOfferId . '/decline';
        $referer = 'https://steamcommunity.com/tradeoffer/' . $tradeOfferId . '/';
        $params = [
            'sessionid' => $this->steamCommunity->getSessionId(),
            'serverid' => '1'
        ];
        $response = $this->steamCommunity->cURL($url, $referer, $params);
        $json = json_decode($response, true);
        if (is_null($json)) {
            return false;
        } else {
            return isset($json['tradeofferid']);
        }
    }
public function declineTradeById ( $ tradeOfferId ) { $ url = 'https://steamcommunity.com/tradeoffer/' . $ tradeOfferId . '/decline' ; $ referer = 'https://steamcommunity.com/tradeoffer/' . $ tradeOfferId . '/' ; $ params = [ 'sessionid' => $ this -> steamCommunity -> getSessionId ( ) , 'serverid' => '1' ] ; $ response = $ this -> steamCommunity -> cURL ( $ url , $ referer , $ params ) ; $ json = json_decode ( $ response , true ) ; if ( is_null ( $ json ) ) { return false ; } else { return isset ( $ json [ 'tradeofferid' ] ) ; } }
Decline a trade offer by its id.
@param $tradeOfferId
@return bool
Decline a trade offer by its id .