尝试元组

时间:2017-08-30 10:39:44

标签: python tuples

我是python中的完整noob。我试图弄清楚使用元组。所以,我做了以下,我不明白结果。

credit_card = {
        number: "5183330730754255",
        type: "mastercard",
        expire_month: 11,
        expire_year: 2018,
        cvv2: "874",
        first_name: "Joe",
        last_name: "Shopper",
        billing_address: {
            line1: "52 N Main St.",
            city: "Johnstown",
            country_code: "US",
            postal_code: "43210",
            state: "OH",
            phone: "408-334-8890"
        },
        external_customer_id: "nodedeveloper122"
    }
    result = Typhoeus.post(
        'https://api.sandbox.paypal.com/v1/vault/credit-cards/',
        :params => credit_card,
        :headers => {"Content-Type" => "application/json", "Authorization" => "Bearer ************"}
    )

之前可能会问过,但我找不到相关内容。

0 个答案:

没有答案