I am using Zapier Webhooks with Airtable with the intention that when there is a new record in my Airtable, I can take action with the webhook!
However, I am having trouble setting up the API on Zapier.
Here is where I am getting the error: And I think it's because I am not authorizing properly, because afterwards it says:
I know my values are correct because when I make a CURL request, I use the following:
curl "https://api.airtable.com/v0/appyRAw7MAgenvkqu/RTS" \
-H "Authorization: Bearer MY_KEY_HERE | json_pp
And I am returned with proper JSON... but through Zapier, I cannot get past this step.
David here, from the Zapier Platform team.
I did a little digging here and it turns out there's a bug on Airtable's end (which has now been reported) where the User-Agent: Zapier header (which we send by default) causes API calls to 404. There are two solutions:
Overwrite the User-Agent header with anything else
Use the table id instead of the table name in the url
I've tested each and found that it works as expected. Here's a picture of my successful setup:
Sorry about that confusion. Let me know if you've got any other questions!
Related
Due to recent changes on API Instagram, it is not possible to use the endpoint above:
https://www.instagram.com/{username}/?__a=1
I've tried with:
https://i.instagram.com/api/v1/users/web_profile_info/?username=username
However, it is not working correctly to fetch data. Please, could someone help to find a solution?
In advance, thank you very much.
The API endpoint https://i.instagram.com/api/v1/users/web_profile_info/?username=username does in fact work if the client has the X-IG-App-ID request header set. This header value can be obtained by inspecting the request sent via any web browser.
Try with this endpoint if your account is a business account.
https://graph.instagram.com/me/media?fields={id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,username}&access_token=""
As title says, I'm looking to send a single request to a web-hook to mention multiple users. At the moment, from testing I can only seem to get it to mention one and any more results in it either converting the entire body to a string or simply mentioning one.
curl --header "Content-Type: application/json" \
--request POST \
--data '{"incoming":"user#email.com"}' \
https://hooks.slack.com/workflows/ID
This is the call I'm making to the workflow Webhook URL & I was trying to use the user's email as an indetifier. It works for the first but not for any others.
Any info is greatly appreciated, I know I'm doing something dumb here!
I managed to resolve this myself the bad way.
I simply added additional values that I can fill in as needed. It's messy, but however I believe the best way to do this based on the limited permissions and the available functionality of Workflows.
I set webhook my telegram bot with setwebhook method but when I send a message in bot don't take this in my URL.
https://api.telegram.org/bot<token>/setwebhook?url=https://www.example.com/bot/temp.php
In my host I use PHP language for take and analysis and answer that. and I user this command for get updates from bot.
$update = file_get_contents(“php://input”);
But after run this line $update is empty.
I haven't problem with take updates without setwebhook bot when I use webhook don't take data.
result run getWebhookinfo is:
{"ok":true,"result":{"url":"https://example.com/bot/temp.php","has_custom_certificate":false,"pending_update_count":0,"max_connections":40}}
Do I have to be true "has_custom_cere"?
Thanks for help me
Mohammad, I think a PHP error occurred when telegram sends the request to you. Following code should works fine for getting the Telegram request.
$json = file_get_contents('php://input');
$request = json_decode($json);
I think your script stop before this code. I suggest you to enable PHP debug mode and check the error log.
You can find out problem via following method:
Check getWebhookInfo method, make sure your webhook URL is correct, and no last_error_message field.
POST similar data to your server, here is some data you can use in curl -d JSON, just copy it and run on your own server.
At last, check your CDN config (if you had applied on that server), temporary disable flooding or any check.
What is the outcome of the /getwebhookinfo method and could you post it here?
Please check if you SSL certificate valid (happend once to me) and what shows if you call the website in your browser (any php errors?).
I would have commented that, but I don´t have enough rep... Sorry :/
Please follow this way and if you don't get answer, your PHP has problem :
1- Revoke your Auth Key from BotFather by typing /revoke
2- Reset your Webbhook by new Auth Key :
https://api.telegram.org/bot<token>/setWebhook?url=https://www.website.com/bot_path
Notice #1 : setWebhook is case sensitive and W keyword must be capital.
Notice #2 : If you're using CMS such as Codeigniter, Laravel, Zend etc. It doesn't need to put .php after your bot_path and if not use it.
Notice #3 : If you want to delete last Webhook that you have set, You just need to write above url without ?url= at the rest.
3- After all you receive this message from telegram :
{"ok":true,"result":true,"description":"Webhook was set"}
Now you can test your Bot, But be aware that do this way to check your Auth Key and If there is no problem, absolutely your PHP code has problem. If you have problem yet please contact me on website to solve it Graphap and then put the right answer here.
I've told to recheck this way because I had problem frequently because of Auth Key which not working But now it works as well.
I'm trying to use Direct Line API of microsoft bot framework,
Following steps are followed.
Got Conversation Id from application(running on node.js)
[conversationId123]
Create Conversation Token from postman
https://directline.botframework.com/api/tokens/conversation
[ConversationToken456]
Get Conversation Messages using conversationId123 & Authorization header using ConversationToken456
https://directline.botframework.com/api/conversations/conversationId123/messages
I receive
BadArgument:Security token not valid for this conversation
Did I miss something?
Hard to know what's going wrong without seeing the whole flow; though the error indicates that the token is invalid.
Here is a DirectLine sample using Node.js. You might want to use it as the baseline for your sample and I'm pretty sure you will find out the error.
I think before sending a message to the BOT you should call the URL stream that returns from the initial "Start conversation" POST request. At least that appears at the documentation
In my case, using C# I'm able to retrieve a token, then message ID and even request the bot to send me a list of activities, but I'm unable to send a message (the POST request never comes back with an answer)
I'm trying to follow the instructions at https://developer.paypal.com/docs/classic/mass-pay/integration-guide/MassPayUsingAPI/#id101DEJ0100A for paying a customer. https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-api-signature# tells me the API username, API password and and signature. I paste those values directly into my program, and POST those parameters (as well as other parameters) to https ://api-3t.paypal.com/nvp and I get this response back:
TIMESTAMP=2015%2d05%2d06T23%3a58%3a01Z&CORRELATIONID=6eef131f4a296&ACK=Failure&VERSION=2%2e3&BUILD=16566018&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error
Any tips for troubleshooting what might be going on here?
Thanks in advance!
Kevin
That error means the API credentials you're using are not accurate. Double the check the values themselves and make sure you didn't miss any characters or add any extra white space on the ends of the values. Also, make sure you're not sending sandbox credentials to the live PayPal server or vice-verse. That's usually what's happening when people run into this.