Comments (7)
@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.
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.
@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.
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,
<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.
@laukit123 sorry, I can't find anything help
may you check your access token set for \Nylas\Client()
again, please.
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.
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.
@laukit123 ok, so the best way is to contact Nylas for help, good luck.
from nylas-php.
Related Issues (20)
- oauth, two parameters are not required, but yes by this lib HOT 1
- how can use Webhook? HOT 2
- Why is the tracking option always returning 403 Error? HOT 2
- Stability and maintainability of this package in large scale production environment HOT 1
- What does the error "All of the required rules must pass" means? HOT 1
- am I missing a file? HOT 1
- Is there a method for upgrade and downgrade? HOT 3
- Irish and Canadian servers HOT 3
- Sokil isocodes HOT 2
- All of the required rules must pass for HOT 3
- Support for Conference Sync - Beta HOT 1
- Make Sending::getMessgeRules() public? HOT 1
- Free/Busy API HOT 1
- Error handling for SSL expiry HOT 1
- Hosted Authentication postOAuthToken issn't working. HOT 7
- No Native Auth example in docs HOT 3
- Setting Options using $nylas->Options fails with 'class Nylas\Options\Abs not found!' exception HOT 2
- Add support for Nylas Scheduler API HOT 3
- Issue with mailbox connections / malformed requests.
- Support for more variables for Availability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nylas-php.