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
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