【发布时间】:2016-01-22 10:06:14
【问题描述】:
是否可以向 Google 日历 API 发出 GET 请求?
我正在使用 AngularJS 创建 GET 请求。但对我来说,如何发送 GET 请求(使用 jQuery、Angular 等)并不重要。我对此很感兴趣。
test.controller('TestCtrl', function ($scope, $http) {
$scope.title="I WANT TO MAKE A REQUEST";
$http.get('https://www.googleapis.com/calendar/v3/calendars/'{{calendarid}}'/events?key='{{apiKey}}').success(function(data){
$scope.tests= data;
});
here is a screenshot 我的变量 calendarid 和 apiKey 值
也许我做错了什么?或者你可以提出一些建议?任何答案将不胜感激!
附:如果您需要更多详细信息,请说出来。
【问题讨论】:
标签: javascript jquery get google-api