How to get consumer key and and consumer secret for gmail api?

前端 未结 2 1345
自闭症患者
自闭症患者 2021-02-04 02:29

I am trying to use Gmail php xoath php samples, however it requires to enter consumer key and consumer secret which I could not find how to obtain in Gmail api documentation. Do

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-04 03:17

    In the google example to access to Gmail using IMAP & OAuth, you can find this code:

    public static OAuthConsumer getAnonymousConsumer() {
    return new OAuthConsumer(null, "anonymous", "anonymous", null);
    }
    

    Hope this helps

提交回复
热议问题