I'm doing a Visual Rec app on nodered and want to tweet out the resultas as a reply to the original tweet (that reuqested de vis rec).
If I only put the username at the beginning sometimes twitter doesn't show it to the user because of the "in_reply_to_status_id" field being empty, so I need to pass thos parameters though msg.params.
When I do that, the tweet out node throws:
"Error: HTTP Error 401: Unauthorized, API message: {"errors":[{"code":32,"message":"Could not authenticate you."}]}"
If I "//" the msg.params line, it tweets just fine.
My params line goes like this:
msg.params=[{"tweet.in_reply_to_status_id":context.global.tweet.id},{"tweet.in_reply_to_screen_name":context.global.tweet.user.screen_name}];
I also tried without the "in_reply_to_screen_name" field (not sure if that's absolutely necessary for the reply), and without the "tweet." part as well.
Any help?!
OK, this worked:
msg.params={"tweet.in_reply_to_status_id":context.global.tweet.id,"tweet.in_reply_to_screen_name":context.global.tweet.user.screen_name};
Thanks Timothy from work!
Related
I'm doing a API request using Web.Contents. I submit a dynamic access token, which I get from a function.
let
Source =
Json.Document(
Web.Contents(
{"https://api-url.com/endpoint/id"},
[Headers=[Authorization="Bearer "& GetToken()]]))
in Source
This works in all of my other instances, but for some reason I get an error with a specific endpoint, to which I submit a id. The error is:
Expression.Error: We cannot convert a value of type List to type Text.
Details:
Value=[List]
Type=[Type]
I have checked the documentation for the API, and the response is composed of the following
id - Id of the device
lastServicedDate - The last time the service was done.
trip -
total -
stateLastUpdated - the timestamp of the state.
Previous assistance have informed me that I need to expand the list, but I cannot seem to make this work.
Any assistance is highly appreciated. Thank you.
You are supplying a list to Web.Contents instead of text. {} denotes a list. Remove your braces:
Web.Contents(
"https://api-url.com/endpoint/id",
[Headers=[Authorization="Bearer "& GetToken()]])
I'm able to get my saved articles with this URL:
https://en.wikipedia.org/api/rest_v1/data/lists/XXXXXX/entries/
XXXXX being the ID for the list, I'm able to get that id there, when I'm logged in:
https://en.wikipedia.org/api/rest_v1/data/lists/
The problem is that I can only get 100 items in that json (on the first URL), and the last items is this:
next "{\"rlecontinue\":\"2018-07-11T09:25:27Z|3322230\",\"continue\":\"-||\"}"
I have no idea how to paginate. Any clue?
EDIT:
I've tried
https://www.mediawiki.org/w/api.php?action=query&list=readinglistentries&rlelists=378020&rlelimit=100&rlecontinue=-||
but it returns "code": "badcontinue", "info": "Invalid continue param. You should pass the original value returned by the previous query.",
https://en.wikipedia.org/api/rest_v1/data/lists/XXXXXX/entries/?next=2018-07-11T09:25:27Z|3322230
but it returns
type "https://mediawiki.org/wiki/HyperSwitch/errors/server_error#invalid_paging_parameter"
title "Invalid paging parameter"
It's pretty simple:
https://en.wikipedia.org/api/rest_v1/data/lists/XXXXXX/entries/?next={"rlecontinue":"2018-07-11T09:25:27Z|3322230","continue":"-||"}
Just don't forget to remove escaping anti-slashes.
The Nelmio is working perfectly in my project but I get an error 400 Bad Request
when I want to insert a date in my Nelmio !!
The type used is Date.
you send something like
transaction[dateP]=value
but form required something like this
transaction[dateP][year]=value&transaction[dateP][month]=value&transaction[dateP][data]=value
So split your value into 3 parameters or you can change widget option of dateP field to single_text to solve the problem.
I guess that all the transaction details are not needed as parameters which have to be defined in the URL of you request.
In case of being data, you will have to specify it like this {"transaction":{}} in the content box on you right.
I am sending an email with a HTML link embedded as follows:
<a href="https://mydomain.com/?d=zJBTDhP%2bZxolUHQ6qJ2yFA%3d%3d" target='_blank'>Link</a>
When called the query string parameter 'd' is URL decoded and then decrypted (Rijndael) using our own function. Very occasionally (1% of cases), with certain users this fails and the error log shows that the query string value has morphed into this:
mWOGQuC%2oMkbyHUD6dW2lSN%3q%3q
so from:
zJBTDhP%2bZxolUHQ6qJ2yFA%3d%3d
to:
mWOGQuC%2oMkbyHUD6dW2lSN%3q%3q
Due to the intermittent nature of this problem...is this likely to be an overzealous spam filter or is this an encoding problem on our side?
Can anyone tell me the reason for this error message in report manager? My report works fine in tool. My second parameter is cascaded (derived from) to the first parameter.
When I run the report for first time it works, but when immediately change any other parameter and try to execute it gives me no data in the result and the web page shows this error:
Line: 13
Char: 692
Error: Object Required
Code: 0
Why do I receive this error?
Sounds like Javascripts version of a NullReferenceException. If that is the case, there are a billion different reasons why this could happen.