Guest User

Add Touch to your Oculus!

a guest
Jan 6th, 2016
2,923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. 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"}}},
  2. xhr = new XMLHttpRequest();
  3.  
  4. xhr.open('POST',
  5. 'https://graph.oculus.com/graphql?access_token=YOUR_ACCESS_TOKEN');
  6. xhr.setRequestHeader('Content-Type', 'application/json');
  7. xhr.send(JSON.stringify(body));
Advertisement
Add Comment
Please, Sign In to add comment