I use the gmail API to display streams, and I found that some elements returned from users_threads->listcannot be found using users_threads->get. These items are also not displayed through the gmail web interface.
I am using gmail api explorer ( https://developers.google.com/gmail/api/v1/reference/users/threads/list ) to test the listing threads.
My mailbox is empty for my auth'd account.
The site makes a type request GET https://www.googleapis.com/gmail/v1/users/me/threads?labelIds=INBOX&key={YOUR_API_KEY}and returns this result set:
200 OK
cache-control: no-cache, no-store, max-age=0, must-revalidate
content-encoding: gzip
content-length: 287
content-type: application/json; charset=UTF-8
date: Wed, 08 Jul 2015 18:23:25 GMT
etag: "A_TI-e9NgLq0wln5q88xm3zdvSg/6meEdFVG8voZD7dqGr76UTURSRk"
expires: Fri, 01 Jan 1990 00:00:00 GMT
pragma: no-cache
server: GSE
vary: Origin, X-Origin
{
"threads": [
{
"id": "14a78517c954ec9c",
"snippet": "",
"historyId": "806722"
},
{
"id": "149daea953d5674e",
"snippet": "",
"historyId": "688170"
},
{
"id": "149d462f26b543db",
"snippet": "",
"historyId": "686319"
},
{
"id": "149ac0958a5b44e8",
"snippet": "",
"historyId": "657008"
},
{
"id": "149ac0c2caea09f7",
"snippet": "",
"historyId": "656272"
},
{
"id": "149ac08d36ce3087",
"snippet": "",
"historyId": "656263"
},
{
"id": "148e3ab2c048f49e",
"snippet": "",
"historyId": "491569"
},
{
"id": "147a123d780d44a7",
"snippet": "",
"historyId": "186314"
},
{
"id": "1478f8b6c004dddb",
"snippet": "",
"historyId": "178535"
},
{
"id": "1478cf683ca0dc8d",
"snippet": "",
"historyId": "177603"
},
{
"id": "14788aa2aba1f35a",
"snippet": "",
"historyId": "173433"
}
],
"resultSizeEstimate": 11
}
It seems to return objects 11when I expect 0.
, threads->get api (https://developers.google.com/gmail/api/v1/reference/users/threads/get) , :
GET https://www.googleapis.com/gmail/v1/users/me/threads/1478cf683ca0dc8d?key={YOUR_API_KEY}
404 Not Found
cache-control: private, max-age=0
content-encoding: gzip
content-length: 120
content-type: application/json; charset=UTF-8
date: Wed, 08 Jul 2015 18:30:21 GMT
expires: Wed, 08 Jul 2015 18:30:21 GMT
server: GSE
vary: Origin, X-Origin
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}
, API . stackoverflow, gmail-api, .
stackoverflow , , , , .
.