I want to retrieve Email Signature from my account using Googole Email API

417 views
Skip to first unread message

Sunny Thakur

unread,
Dec 7, 2011, 10:27:41 AM12/7/11
to google-app...@googlegroups.com
Hello, 
         I had started using Google APIs .in my first application i am trying to fetch the user signature from the email setting ,for this i am using
 "https://apps-apis.google.com/a/feeds/emailsettings/2.0/{domain name}/{user name}/signature" .
after running this into my html ,i am getting the authorization error from google .
If someone is having solution tha pls reply ...
I am using OAUTH for authorization process

Thanks in Advance


Gunjan Sharma

unread,
Dec 7, 2011, 10:30:39 AM12/7/11
to google-app...@googlegroups.com
Hello Sunny

Can you give us some code snippet of how you are authorizing the API?

Thanks
Gunjan Sharma | Developer Programs Engineer |  gunjan...@google.com | +91 7702534446





--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/mfeDUOGhLxkJ.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Sunny Thakur

unread,
Dec 7, 2011, 10:44:29 AM12/7/11
to google-app...@googlegroups.com
Hello Gunjan , 
                     This is code snippet  ,I got some help from already developed sample application .

 OAUTH.sendSignedRequest(
      function(response) {
      alert(response);

        const RESULTS = JSON.parse(response).data.signature;

        localStorage.digests = JSON.stringify(RESULTS.digests.slice(0, 20));
        const UNREAD_COUNT = RESULTS.numResults;
        PRETTYLOAD.finish(
          localStorage.unreadCount ='+'

        );
      },
      {
        method: 'GET',
        headers: {'Content-Type': 'application/json'},
        body: JSON.stringify({
          method: 'wave.robot.search',
          params: {query: 'signature', numResults: MAX_UNREAD}
        })
      }
    );
  }
  function authorize() {
    OAUTH.authorize(function() {
      BROWSER_ACTION.setIcon({path: 'authorized.png'});

      BROWSER_ACTION.setBadgeBackgroundColor({color: [85, 144, 210, 255]});
      sync();


      id = setInterval(function() { sync(); }, 60000);
    });
  }

  const UNKNOWN_COUNT = '?';

  if (!parse(localStorage.initialized)) {
    localStorage.maxDigests = 5;
    localStorage.participantAnnotated = true;
    initialize();
    localStorage.initialized = true;
  }

  const BROWSER_ACTION = chrome.browserAction;
  load();
  BROWSER_ACTION.setBadgeText({text: UNKNOWN_COUNT});
  const OAUTH = ChromeExOAuth.initBackgroundPage({

   consumer_key: 'XYZ.apps.googleusercontent.com',
    consumer_secret: 'abc',
    app_name: 'My SampleApp'
  });
  var id;
  const PRETTYLOAD = new Prettyload(TRIANGLE_WAVE);
  const MAX_UNREAD = 100;
  authorize();
</script>

Gunjan Sharma

unread,
Dec 7, 2011, 10:50:55 AM12/7/11
to google-app...@googlegroups.com
Hello Sunny

The email settings API doesn't work for gmail.com accounts. It is only meant for Google Apps domain accounts.


Thanks
Gunjan Sharma | Developer Programs Engineer |  gunjan...@google.com |  +91 7702534446



--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.

Sunny Thakur

unread,
Dec 7, 2011, 10:53:10 AM12/7/11
to google-app...@googlegroups.com
Hello Gunjan ,
                     Is there is any another way to achieve this ..?
Thanks
--
Thanks and Regards,
Sunny

Gunjan Sharma

unread,
Dec 7, 2011, 11:00:38 AM12/7/11
to google-app...@googlegroups.com
Hello Sunny

Currently you cannot use any API for signature retrievals from gmail.com accounts.


Thanks
Gunjan Sharma | Developer Programs Engineer |  gunjan...@google.com |  +91 7702534446



David Politis (CEO - BetterCloud)

unread,
Jul 18, 2012, 2:28:51 PM7/18/12
to google-app...@googlegroups.com
Hey - I just noticed this thread and wanted to let you know that BetterCloud has released a new product that allows users to create email signatures, among many other things. In FlashPanel, you can create a standardized email signature for your company with our easy-to-use editor, then apply those signatures to users, groups, or even org. units. 

There are a number of other features inside FlashPanel that I think you'll find very valuable, like the Apps Butler, a powerful tool that allows you to look up users, send messages to your entire company, and navigate all the features FlashPanel has to offer. 

FlashPanel is currently in beta, and we're keeping it completely free for everyone during that time. Just visit flashpanel.com to learn more, or flashpanel.com/marketplace to install the product from the Google Apps Marketplace listing. 

Thanks,

David Politis
CEO - BetterCloud

Andre Kostur

unread,
Jul 18, 2012, 2:40:08 PM7/18/12
to google-app...@googlegroups.com
Out of curiosity... what about managing the signatures on people's send-as aliases?

(BTW: I have a set of scripts in perl that manage my user's signatures, but I'm using ClientLogin instead of OATH.  I login as a domain admin and set user's sigs.)

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.

To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.



--
Andre Kostur
Senior Product Design Engineer
P: 604-678-2864
E: ako...@incognito.com
Toll-Free: 1-800-877-1856


F: 604-678-2864
VoIP: sip:8...@sip.incognito.com

Incognito Software Inc.



Alexandre Jacquet

unread,
Jul 18, 2012, 7:37:55 PM7/18/12
to google-app...@googlegroups.com
Uhmmm, good question, but i think the only parameter you have to change is the username attribute, al thought I would have to test!

But is easier to use BetterCloud's FlashPanel! It rocks.

Alexandre Jacquet
Deployment & Operations
Nubis Partners
Nice 2 Cloud U

Andre Kostur

unread,
Jul 18, 2012, 8:08:36 PM7/18/12
to google-app...@googlegroups.com
Note I'm talking about their send-as alias.... so you may have 4 or 5 people able to send as, say, a group email address.   It's an outstanding bug at the API level as far as I'm aware (since I filed the bug...almost a year ago.  Issue 2724.)
Reply all
Reply to author
Forward
0 new messages