zapier

How to use list_pop?

偶尔善良 提交于 2019-12-11 15:13:18
问题 This is related to the Zapier Python code. Has anyone been successful using the pop_list() function as part of the StoreClient library? I'm stuck on this simple program. Basically i'm trying to remove the first item in my list that is stored in MyList.get('MyIDList') Any help is greatly appreciated. Below is my code. Note if I remove the 2nd line, it'll work fine. My list is certainly not empty. MyList= StoreClient('STSecretKey') MyList.list_pop('MyIDList', location='head') return {'FirstItem

Slack logon trigger

≡放荡痞女 提交于 2019-12-11 06:12:41
问题 I want to create something in Slack that sends a message (starting by calling someone with '@') to a channel when specific users login. I've checked ifttt and zapier. I also checked the slack api to create something myself, but I couldn't really find anything usefull. Anyone has any ideas? 回答1: Slack does not track user login or logoff in a traditional sense. Instead, users are always always "logged in" and available to receive messages once they have joined a team / channel. There also is

Zapier basic auth pass blank data

烈酒焚心 提交于 2019-12-11 05:36:08
问题 I have been trying to create an app in Zapier for one of my project. On the very first step, I am doing Authentication where I choose "Basic Auth" method. I have set API URL along with details, however cannot see the expected result and seeing error in my API return value. After debugging, I found that API doesn't get the value I pass thru the Zapier. I have checked the same API in postman and it works, however it only doesn't work thru the Zapier. Below is even more detail how I proceed,

Why am I getting a Runtime.MarshalError when using this code in Zapier?

寵の児 提交于 2019-12-11 04:28:47
问题 The following code is giving me: Runtime.MarshalError: Unable to marshal response: {'Yes'} is not JSON serializable from calendar import monthrange def time_remaining_less_than_fourteen(year, month, day): a_year = int(input['year']) b_month = int(input['month']) c_day = int(input['day']) days_in_month = monthrange(int(a_year), int(b_month))[1] time_remaining = "" if (days_in_month - c_day) < 14: time_remaining = "No" return time_remaining else: time_remaining = "Yes" return time_remaining

Use Python to get image in Zapier

只谈情不闲聊 提交于 2019-12-11 03:09:59
问题 I am trying to use a Python code step to download an image in Zapier. Here is some sample code (but it doesn't seem to work): r = requests.get('https://dummyimage.com/600x400/000/fff') img = r.raw.read() return {'image_data': img} The error I get is Runtime.MarshalError: Unable to marshal response: b'' is not JSON serializable Does anyone know how I can use requests in a Python code step in Zapier to get an image? (I am trying to get the image and save it to Dropbox.) THANKS. 回答1: It looks

How do I JSON.parse an array in a Zapier Trigger?

淺唱寂寞╮ 提交于 2019-12-09 06:55:02
问题 I am trying to JSON.parse the array "data." I need to be able to pass the array as the root. { "data": [ { "type": "name", "id": "123" } ] } The response should look like this containing only objects. Zapier doesn't seem to work well with arrays. { "type": "name", "id": "123" } Shouldn't I be able to use a simple script to get the job done? EDIT: Essentially, you're going to want to override the post_poll method (https://zapier.com/developer/documentation/v2/scripting/#polling) in scripting

How to send email with all information associated with user id in Firebase

对着背影说爱祢 提交于 2019-12-08 03:28:16
问题 When a new user is added to Firebase, I would like to send myself an email with all of the data associated with that user. So if I have a /contacts path and a /projects path, I'd like to include the data from both paths when a child is added to the /contacts path. I've looked at Zapier using Mailgun, but can't figure out how to accomplish this. If Zapier won't work, is this something can be accomplished with the firebase-util? Tree for my-firebase-app.firebaseio.com/contacts -contacts -

Running onEdit trigger when sheet is updated by Zapier

断了今生、忘了曾经 提交于 2019-12-06 09:56:50
问题 I have a Google spreadsheet where I would like to automatically update one field every time a new row is added by a Zapier automation. Every time I test the script manually by adding a row or making edits on existing rows, the script fires as expected. However, when Zapier adds a new row to the spreadsheet absolutely nothing happens. Any idea why and how I can remedy this problem? This the script which I am trying to use: function onEdit(e) { var row = e.range.getRow(); SpreadsheetApp

How can I get Zapier MySQL “update row” to update a value in a row with a Null value?

时光毁灭记忆、已成空白 提交于 2019-12-06 04:49:33
I have created a Zapier Zap to populate data from a SmartSheet to a MySQL database. I have it branching so if the row does not already exist in MySQL a new row is created. This part works fine. In my second branch, if the row already exists then the data in the row is updated with new data from the SmartSheet row. When existing data is replaced with new data the Zap works fine. E.g. for an example existing MySQL row: +--------+---------------+--------------------+ | row_id | email_comment | smartsheet_orig_id | +--------+---------------+--------------------+ | 895 | easy | 6876364645150921 | +

Running onEdit trigger when sheet is updated by Zapier

陌路散爱 提交于 2019-12-04 17:44:31
I have a Google spreadsheet where I would like to automatically update one field every time a new row is added by a Zapier automation. Every time I test the script manually by adding a row or making edits on existing rows, the script fires as expected. However, when Zapier adds a new row to the spreadsheet absolutely nothing happens. Any idea why and how I can remedy this problem? This the script which I am trying to use: function onEdit(e) { var row = e.range.getRow(); SpreadsheetApp.getActiveSheet(). getRange(row, 10).setValue('My_New_Value'); } I was able to replicate the behavior you are