Jump to content

Using 'Post in Webhooks by Zapier'


Go to solution Solved by 700newtons,

Recommended Posts

Hello ,

I trying to set up an arrangement so that if someone joins a Club, they automatically follow its content.

I have successfully set up the trigger on zapier which recognises when someone joins a club. However, after an afternoon of trying, I can't get POST to create follow the update.

I'm trying to use the API post function with  core/members/{id}/follows

Here are the text boxes on zapier.

URL: https://{my_URL_here}/api/core/members/{member_id}/follows/?key={my key here}

Payload: json

Data

followApp
core

followArea
club

followId
{id number of club here}

Wrap Request in array: no

File: {left blank}

Unflatten: yes

Basic Auth: {left blank}

Headers: {left blank ?}

 

I have tried all sorts of combinations, but no joy.

Any advice?

Thanks in advance.

Simon

 

Link to comment
Share on other sites

  • Solution

Ah, fixed it by posting with python code in zapier. Probably a weird way to do it but it works...

import requests
api_url_follow = '{my_URL}/api/core/members/'+input_data['member_id']+'/follows/?key={the_API_key}'
todo_follow = {
        "followApp":"core",
        "followArea":"club",
        "followId":int(input_data['club_id']),
        "followNotify":1,
        "followAnon":0,
        "followType":"daily"
}
response = requests.post(api_url_follow, data = todo_follow)
Link to comment
Share on other sites

Seeing if you're passing the same information over the two mediums, it really would like be an issue with the variables which are created and passed. I would just verify the variables being passed in Zapier.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...