API Reference
中文

SendGift

Event Type: send_gift

  • send_gift[* Object SendGift]: Send Gift Information
    • receiving_account_id[* String]: Gift Receiver Account ID
    • gifts[* Array Merchandise]: Gift List
      • merchandise_id[* String]: Merchandise ID
      • category_1[* String]: The primary classification of Merchandise
      • category_2[String]: Secondary classification of Merchandise
      • category_3[String]: Three-level classification of Merchandise
      • name[String]: Merchandise Name
      • count[Integer]: Merchandise Count
      • unit_price[Object Amount]: Merchandise Unit Price
        • currency[* String]: Local Currency Type, 3-letter code according to ISO 4217
        • amount_local[* Double]: Amount ( Local Currency )
        • amount_usd[Double]: Amount ( USD ), The USD amount is converted from the original amount by the exchange rate, (required when not access to China Server)
        • amount_cny[Double]: Amount ( CNY ), The CNY amount is converted from the original amount by the exchange rate, (required when accessing a China Server)
    • total_price_amount[* Object Amount]: Gift Amount
      • currency[* String]: Local Currency Type, 3-letter code according to ISO 4217
      • amount_local[* Double]: Amount ( Local Currency )
      • amount_usd[Double]: Amount ( USD ), The USD amount is converted from the original amount by the exchange rate, (required when not access to China Server)
      • amount_cny[Double]: Amount ( CNY ), The CNY amount is converted from the original amount by the exchange rate, (required when accessing a China Server)
    • scene_object_id[* String]: Scene Object ID, live room ID or Session ID, etc.
    • scene[* String]: Scene, enumeration
      • live_room
      • voice_room
      • chat_room
      • chat
      • other
{
    "send_gift": {
        "receiving_account_id": "5763543",
        "gifts": [
            {
                "merchandise_id": "NFH837824432",
                "category_1": "3c",
                "category_2": "phone",
                "category_3": "android",
                "name": "huawei phone",
                "count": 1,
                "amount": {
                    "currency": "USD",
                    "amount_local": 1000,
                    "amount_usd": 1000,
                    "amount_cny": 6800
                }
            }
        ],
        "total_price_amount": {
            "currency": "USD",
            "amount_local": 1000,
            "amount_usd": 1000,
            "amount_cny": 6800
        },
        "scene_object_id": "NDUH9364",
        "scene": "live_room"
    }
}