Skip to content

Instantly share code, notes, and snippets.

@tanabe
Created March 24, 2013 05:38
Show Gist options
  • Save tanabe/5230703 to your computer and use it in GitHub Desktop.
Save tanabe/5230703 to your computer and use it in GitHub Desktop.
post mixi voice using XMLHttpRequest
var requestParams = {"jsonrpc":"2.0","method":"jp.mixi.voice.create","params":{"viewer_id":"xxx","owner_id":"xxx","body":"abc","twitter_sync":0,"privacy":{"name":"friend"},"via":18,"guidance_id":"3"},"id":0};
var xmlHttpRequest = new XMLHttpRequest();
xmlHttpRequest.open('POST', 'http://mixi.jp/system/rpc.json?auth_type=postkey&secret=xxx');
xmlHttpRequest.send(JSON.stringify(requestParams));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment