Received: by 10.43.46.137 with SMTP id uo9mr9927991icb.18.1349705531504; Mon, 08 Oct 2012 07:12:11 -0700 (PDT) X-BeenThere: chromium-extensi...@chromium.org Received: by 10.50.208.37 with SMTP id mb5ls5224199igc.2.gmail; Mon, 08 Oct 2012 07:12:03 -0700 (PDT) Received: by 10.50.153.230 with SMTP id vj6mr6067031igb.3.1349705523216; Mon, 08 Oct 2012 07:12:03 -0700 (PDT) Received: by 10.50.57.13 with SMTP id e13msigq; Sat, 6 Oct 2012 10:29:04 -0700 (PDT) Received: by 10.68.238.201 with SMTP id vm9mr3930472pbc.6.1349544536481; Sat, 06 Oct 2012 10:28:56 -0700 (PDT) Date: Sat, 6 Oct 2012 10:28:54 -0700 (PDT) From: codef0rmer To: chromium-extensi...@chromium.org Message-Id: <47760610-7879-412d-8fc7-a0a1a61ded13@chromium.org> Subject: Is it possible to fetch mails from Gmails older than n days in Javascript/Chrome Extension? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_845_25378097.1349544534421" ------=_Part_845_25378097.1349544534421 Content-Type: multipart/alternative; boundary="----=_Part_846_19307870.1349544534421" ------=_Part_846_19307870.1349544534421 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I've managed to setup the oauth Login using oauth API in javascript/Chrome Extension and trying to fetch all the emails from Gmail using https://mail.google.com/mail/feed/atom/ but I get empty string back. But I do get gmail contacts using following code: var url = "http://www.google.com/m8/feeds/contacts/default/full"; oauth.sendSignedRequest(url, onContacts, { 'parameters' : { 'alt' : 'json', 'max-results' : 100 } }); Am I using the wrong URL to fetch emails? Is there any example available I can go through? ------=_Part_846_19307870.1349544534421 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I've manag= ed to setup the oauth Login using oauth API in javascript/Chrome Extensio= n and trying to fetch all the emails from Gmail using https://mail.google.com= /mail/feed/atom/ but I get empty string back. But I do get gmail contacts= using following code:

var url =3D "http://www.google.com/m8/feeds/contacts/default/full";=

oauth.sendSignedReque= st
(
url, onContacts, {
 
'parameters' {=
  &n= bsp;
'alt' : 'json',
   
'max-results' = : = 100  });
Am I using the wrong URL to fetch emails? Is there any example avai= lable I can go through?
------=_Part_846_19307870.1349544534421-- ------=_Part_845_25378097.1349544534421--