Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var body = {"q":"Mutation mutation : PreorderUpdatePartnerCouponsResponsePayload {\npreorder_update_partner_coupons(<input>){order{id}}\n }","query_params":{"input":{"client_mutation_id":0,"order_id":"YOUR_ORDER_ID","interested_in_dell":"false","interested_in_asus":"false","interested_in_alienware":"false","interested_in_touch":"true"}}},
- xhr = new XMLHttpRequest();
- xhr.open('POST',
- 'https://graph.oculus.com/graphql?access_token=YOUR_ACCESS_TOKEN');
- xhr.setRequestHeader('Content-Type', 'application/json');
- xhr.send(JSON.stringify(body));
Advertisement
Add Comment
Please, Sign In to add comment