How to get ThreadId or MessageId of gmail compose message with InboxSDK

只愿长相守 提交于 2020-03-05 04:13:27

问题


I am completely new in Making Extension. Currently, I am trying to work with InboxSDK library to track mail. I wanted to get compose message's TheadID or MessageID but every time it's giving me error that GetmessageID() is not a function. The tries , I did till now is as per below.

InboxSDK.load(2, 'my inboxsdk id').then(function(sdk){

    // the SDK has been loaded, now do something with it!
    sdk.Compose.registerComposeViewHandler(function(composeView){

                 composeView.insertHTMLIntoBodyAtCursor('<div><img class="imgClass" src="../images/footprints.png"><div>'); 
                 console.log(composeView.getThreadID());
                 console.log(composeView.getMessageID());
    });
});

The first console is coming blank and other one giving error whenever I open compose messagebox in gmail.PLease help me if you are aware with InboxSDK .Thank you.

来源:https://stackoverflow.com/questions/57933735/how-to-get-threadid-or-messageid-of-gmail-compose-message-with-inboxsdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!