我想使用谷歌日历通知。
我已经部署了我的Meteor应用程序
import java.util.Scanner;
public class Substr {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String s1=new String();
String s2=new String();
s1=sc.next();
s2=sc.next();
int l1=s1.length();
int l2=s2.length();
System.out.println(l1);
for (int i = 0; i < l1; i++) {
int l=i;
char c=s1.charAt(l);
int k=0;
while (c!=s2.charAt(k)) {
k++;
}
char temp=s2.charAt(k);
l++;
StringBuilder sb=new StringBuilder();
sb.append(c);
sb.append(s2.charAt(l));
String substr1=sb.toString();
sb.append(temp);
k++;
sb.append(s2.charAt(k));
String substr2=sb.toString();
if (substr1.equals(substr2)) {
String substr=substr1+substr2;
System.out.println(substr);
}
}
}
}
我已经验证了google网站管理员中的网址。
将相同的域添加到Google控制台的域验证中。
我创建了https://google-push-notification.meteor.com/api/articles的Meteor rest api for get和post方法。
以下是apis的邮递员收藏。 https://google-push-notification.meteor.com
https://www.getpostman.com/collections/106be7c94d35fcbdb0f8
为什么即使我在谷歌验证了我的网站并在谷歌控制台中添加了相同的域名,我也会得到Post https://www.googleapis.com/calendar/v3/calendars/abc@gmail.com/events/watch
Authorization: Bearer ya29.YwJdqjlSv8Tkl5MEJgiVXQPGxE24ZfITuf8gt0C8DO_VHDvB_1mRAgpAx64R6Wpw8I6fiw
Content-Type: application/json
{
"id": "ya29.XwI-RJ54rS3dbRHgak8V_iTuV7uAWJoZfRFnUE76uCIIUbw4eILPsdEME56Jm5_EfDtWWWs",
"type": "web_hook",
"address": "https://google-push-notification.meteor.com/api/items"
}
I am getting the following response
{
"error": {
"errors": [
{
"domain": "global",
"reason": "push.webhookUrlUnauthorized",
"message": "Unauthorized WebHook callback channel: https://google-push-notification.meteor.com/api/articles"
}
],
"code": 401,
"message": "Unauthorized WebHook callback channel: https://google-push-notification.meteor.com/api/articles"
}
}
响应。
任何人都可以帮助我们解决问题
答案 0 :(得分:0)
根据Google forum,请确保您已验证以下项目:
希望这可以解决您的问题。干杯!