How to parse JSON from Gmail API using JavaScript?

后端 未结 2 948
旧时难觅i
旧时难觅i 2020-12-20 09:20

Using JavaScript, how do I extract the Date, To, From, Subject and Text fields from the Gmail API\'s return (see below)?

It\'s not in the usual name-value pair, at l

2条回答
  •  情书的邮戳
    2020-12-20 10:08

    Surfing on the Internet I have found this class which describes a Generic GMail Message. You might use this to easily parse the JSON (by using any of the wide range of provided libraries).

提交回复
热议问题