1
appceleratorを使用してGoogleカレンダーのAPIサービスの実装を探しています。私は、GoogleのAPIを呼び出すいずれか助けてくださいme.Advanceのおかげappceleratorを使用してGoogleカレンダーのAPIサービスを呼び出す方法
appceleratorを使用してGoogleカレンダーのAPIサービスの実装を探しています。私は、GoogleのAPIを呼び出すいずれか助けてくださいme.Advanceのおかげappceleratorを使用してGoogleカレンダーのAPIサービスを呼び出す方法
GoogleカレンダーAPI https://developers.google.com/google-apps/calendar/v3/reference/
例えば標準のネットワーク・プロセスhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network.HTTPClientを使用してネットワーク呼び出しを宣言して使うアイデアを得ていないが開始されますする方法ユーザーのカレンダーを取得する
var url = " https://www.googleapis.com/calendar/v3/users/me/calendarList";
var client = Ti.Network.createHTTPClient({
// function called when the response data is available
onload : function(e) {
Ti.API.info("users calendars: " + JSON.stringify(this.responseText));
alert('success');
},
// function called when an error occurs, including a timeout
onerror : function(e) {
Ti.API.debug(e.error);
alert('error');
},
timeout : 5000 // in milliseconds
});
// Prepare the connection.
client.open("GET", url);
// Send the request.
client.send();