Giter VIP home page Giter VIP logo

Comments (7)

lanlin avatar lanlin commented on August 19, 2024

@laukit123 more detail, please. which method and how you call it?

if you mean the getMessage($messageId) method, I have tested it again, works fine.

"The requested item doesn't exist" means the Nylas API response a 404 status code, that said the id may not exists.

from nylas-php.

laukit123 avatar laukit123 commented on August 19, 2024

I am call message API getMessage(('awcss1sbzcvr0249de3bjk8z3');
This is return error => true and message => 'The requested item doesn't exist'.
'awcss1sbzcvr0249de3bjk8z3' This is the messageid.
Please check attached response file.
messageResponse.txt

from nylas-php.

lanlin avatar lanlin commented on August 19, 2024

@laukit123 sorry, I am pretty sure this method is ok.

please try this, with your own access token

curl -X GET 'https://api.nylas.com/messages/awcss1sbzcvr0249de3bjk8z3' -H 'Authorization: ACCESS_TOKEN_HERE' -H 'cache-control: no-cache'

I think there's no message for awcss1sbzcvr0249de3bjk8z3 id in your current account.

maybe it just in another account.

from nylas-php.

laukit123 avatar laukit123 commented on August 19, 2024

Hello,
This is the response of above curl command:
{
"account_id": "8ri9c63h75zfrn55dy7abubfl",
"bcc": [],
"body": "<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">Boa tarde,


Serve o presente para enviar dados para o pedido da baixada definita da obra mencionada em assunto:

Obra do. Covelo- Moradia Esquerda:
Rua Costa Cabral, Uni\u00e3o das freguesias de Vila Nova de Famalic\u00e3o e Calend\u00e1rio, Vila Nova de Famalic\u00e3o.
Maria Carolina Gomes de Carvalho cc 179727770 e Maria Jos\u00e9 Gomes de Carvalho cc 157244938

Em anexo os cart\u00f5es de cidad\u00e3o das 2 irm\u00e3s e a licen\u00e7a de constru\u00e7\u00e3o.
<object type="application/x-apple-msg-attachment" data="cid:6CBEA646-68B4-4E5B-8C1A-19762DAFE25A@home" apple-inline="yes" style="background-color: rgb(254,254,254); -apple-color-filter: none" id="E325C718-9660-498F-8D52-1201DA73235E" height="517" width="730" apple-width="yes" apple-height="yes">

<div id="AppleMailSignature">\n<span style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(11, 83, 148); color: rgb(11, 83, 148); font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">Com os melhores cumprimentos / best regards,<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><table align="left" border="0" cellpadding="0" cellspacing="0" width="480" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: -webkit-standard; background-color: rgb(255, 255, 255); max-width: 480px; width: 460px;"><td align="left" valign="top" width="300" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: -webkit-standard; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; padding: 10px;"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr class="signRow"><td style="font-family: "Century Gothic", Arial, sans-serif; line-height: 26px; padding: 0px;">Eng.\u00ba Ricardo Silva<tr class="signRow"><td style="font-family: arial; font-size: 12px; line-height: 18px;">Dire\u00e7\u00e3o Geral
<tr class="signRow"><td style="word-wrap: break-word; font-size: 0px; padding-top: 5px; padding-bottom: 5px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%" style="font-size: 1px; margin: 0px auto; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(44, 130, 201); width: 256.375px;"><td style="height: 0px; line-height: 0;"> <tr class="signRow"><td style="font-family: arial; font-size: 12px; line-height: 18px; vertical-align: middle;">+351 912 337 899
<tr class="signRow"><td style="font-family: arial; font-size: 12px; line-height: 18px;"> <a href="http://joph.pt/\" rel="noopener noreferrer" target="_blank" style="color: inherit;">www.joph.pt<td align="left" valign="top" width="180" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: -webkit-standard; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; padding: 10px;"><table border="0" cellpadding="0" cellspacing="0" width="100%"><td align="center" valign="top"><a href="http://joph.pt/\" rel="noopener noreferrer" target="_blank" style="color: inherit;"><span class="Apple-string-attachment"><span class="Apple-string-attachment"><span class="Apple-string-attachment"><span class="Apple-string-attachment"><span class="Apple-string-attachment"><span class="Apple-string-attachment"><object height="200" width="142" type="application/x-apple-msg-attachment" data="cid:D5EE8D06-14C1-42CA-B71A-4B995DE10505@lan" apple-inline="yes" id="5DC8960F-ED79-49E4-82CE-073ABB206E24" apple-width="yes" apple-height="yes"><span class="Apple-string-attachment" style="caret-color: rgb(0, 0, 0); font-family: -webkit-standard; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0);">
<span class="Apple-string-attachment" style="caret-color: rgb(0, 0, 0); font-family: -webkit-standard; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0);">







<div style="caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); text-decoration: none; font-family: Helvetica; font-size: 12px; text-align: start;"><br class="Apple-interchange-newline">
<div style="caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); text-decoration: none; font-family: Helvetica; font-size: 12px; text-align: start;"><br class="Apple-interchange-newline">
<br class="Apple-interchange-newline" style="caret-color: rgb(0, 0, 0); font-family: -webkit-standard; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); text-decoration: underline;">\n\n
",
"cc": [
{
"email": "[email protected]",
"name": "Rosinha"
}
],
"date": 1561972389,
"events": [],
"files": [
{
"content_disposition": "inline",
"content_id": "6CBEA646-68B4-4E5B-8C1A-19762DAFE25A@home",
"content_type": "application/pdf",
"filename": "Licenc\u0327a Maria Carolina e Maria Jose\u0301 Carvalho.pdf",
"id": "91807y4yhiydeuqkl540p6eeg",
"size": 59386
},
{
"content_disposition": "inline",
"content_id": "D5EE8D06-14C1-42CA-B71A-4B995DE10505@lan",
"content_type": "image/png",
"filename": "img-5bbcaa6479ae6.png",
"id": "9qzvm3b4ij8c2jm8v3h0tn4hb",
"size": 3842
},
{
"content_disposition": "attachment",
"content_type": "application/pdf",
"filename": "Cc-Maria Jos\u00e9.pdf",
"id": "dy3gygp5x0juybr07e46a5j7w",
"size": 352730
},
{
"content_disposition": "attachment",
"content_type": "application/pdf",
"filename": "Cc. Maria Carolina.pdf",
"id": "dptqni5f8a6le6fstah6lv4cq",
"size": 351636
}
],
"from": [
{
"email": "[email protected]",
"name": "Ricardo Silva"
}
],
"id": "awcss1sbzcvr0249de3bjk8z3",
"labels": [
{
"display_name": "Todo o correio",
"id": "58zfc6plppb4g2q40rve6f216",
"name": "all"
},
{
"display_name": "Correio enviado",
"id": "40mavnaw3w5ikbodhc7sf1h5x",
"name": "sent"
}
],
"object": "message",
"reply_to": [],
"snippet": "Boa tarde, Serve o presente para enviar dados para o pedido da baixada definita da obra mencionada em assunto: Obra do. Covelo- Moradia Esquerda: Rua Costa Cabral, Uni\u00e3o das freguesias de Vil",
"starred": false,
"subject": "Baixada definitiva - Obra do Covelo (Esquerda)",
"thread_id": "3uauc65xqwecq8iu4198ptlwb",
"to": [
{
"email": "[email protected]",
"name": "HURLEC unipessoal,lda"
}
],
"unread": false
}

from nylas-php.

lanlin avatar lanlin commented on August 19, 2024

@laukit123 sorry, I can't find anything help

may you check your access token set for \Nylas\Client() again, please.

image

does it really same as the token that used in the curl command?
please try again, check your account and access token.

from nylas-php.

laukit123 avatar laukit123 commented on August 19, 2024

I dump the request parameter and all are good.
But just for this message I got this error message for other this is working fine.

from nylas-php.

lanlin avatar lanlin commented on August 19, 2024

@laukit123 ok, so the best way is to contact Nylas for help, good luck.

from nylas-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.