var plurk_content = $( '#plurk_content' ).val();
if( plurk_content != '' ) {
var params = new Object();
params.content = plurk_content;
params.qualifier = 'says';
params.lang = 'tr_ch';
// using postJSON()
oauth.postJSON(
config.TimelineAddPlurkUrl
, params
, function( json ) {
console.log( "Plurk Successed !" );
console.log( json );
}
, function( json ) {
console.log( "Plurk Failure !" );
console.error( json );
} );
/*
oauth.request({'method': 'POST'
, 'headers': { 'Content-Type': 'application/x-www-form-urlencoded' }
, 'url': config.TimelineAddPlurkUrl
, 'data': params
, 'success': function( json ) {
console.log( "Plurk Successed !" );
console.log( json );
}
, 'failure': function( json ) {
console.log( "Plurk Failure !" );
console.error( json );
}
});
*/
}