A fully functioning example of Web Hooks, please

817 views
Skip to first unread message

Steve Dieckbrader

unread,
Jun 18, 2012, 9:39:02 AM6/18/12
to podi...@googlegroups.com
I am trying to get a simple web hook to work using ASP.Net (not PHP or Ruby). I have set up the hook thusly:
http://localhost:50113/OneBug.aspx item.create inactive
When I click Verify, a 'Verification Requested' popup appears momentarily. However, no request is detected by the break point in the Page_Load method of my web site. I can throw the exact same URL at a browser and get a Page_Load, so what am I missing? And in anticipation of that, another question... The documentation for the validation operation simply says: "code": The verification code. What exactly is "The verification code"? Anything I want? Would it be possible for you to provide a complete real-world example using actual values, and not assuming a foreknowledge of something like PHP, so that I might be able to extrapolate how to integrate with a Windows server environment. Thanks

Nick Barnwell

unread,
Jun 18, 2012, 9:48:00 AM6/18/12
to podi...@googlegroups.com
I would start by verifying you've provided an FQDN as the hook target; if you give Podio localhost as the address to hit you're not going to see many requests reaching your server ;)

The 'code' parameter in the hook verification POSTed to your server is the code you supply in the 'validate' call back to the Podio server:


The flow then looks like this:

  1. Register Webhook with Podio
  2. Podio POSTs to URL supplied as web hook endpoint in step 1 with the below body:
    1. {type:'hook.verify', 'hook_id': $id, code: '$someOneTimeToken' }
  3. Take the code param from 2.1 and make a POST to the url of '/hook/{hook_id}/verify/validate' with the body
    1. { code '$2.1code' }
Your hook should now be validated
From: Steve Dieckbrader <stev...@gmail.com>
Reply-To: "podi...@googlegroups.com" <podi...@googlegroups.com>
Date: Monday, June 18, 2012 6:39 AM
To: "podi...@googlegroups.com" <podi...@googlegroups.com>
Subject: [podio-api] A fully functioning example of Web Hooks, please

Steven Dieckbrader

unread,
Jun 18, 2012, 4:43:20 PM6/18/12
to podi...@googlegroups.com
Hi Nick,

I am still stuck on the first point. Yes, duh, I can't expect PODIO to know what localhost is, so I wrote a one line ASP web app that I have deployed on my test server. While I can hit it from anywhere else I have tried, PODIO fails to ping my server. Here is the URL now: http://ftlwstevedie01.eng.citrite.net/obutils/Reloc.aspx
As I said, I tried this from several machines, in both the citrite and eng domans, and all in other cases it worked, yet when I click Verify web hook from PODIO, there is no request detected. What else am I missing?

Thanks,
-Steve

Nick Barnwell

unread,
Jun 18, 2012, 6:58:13 PM6/18/12
to podi...@googlegroups.com
Always best to start with the simple things, I've certainly done similar stuff before and needed it pointed it out to me :)

I'm not in a position to test right now, but none of my systems that rely on hooks have thrown any errors regarding validation, and when I try and access the URL you've provided I receive a timeout on DNS lookup and am unable to access the server. It looks like that hostname is not accessible from outside your network? I tried from both Google and my university's cluster with no success. I imagine it's the same for Podio's servers, and the reason you're never seeing a POST is that one is never reaching you.

Cheers,
Nick

________________________________________
From: podi...@googlegroups.com [podi...@googlegroups.com] on behalf of Steven Dieckbrader [stev...@gmail.com]
Sent: Monday, June 18, 2012 1:43 PM
To: podi...@googlegroups.com
Subject: Re: [podio-api] A fully functioning example of Web Hooks, please

Hi Nick,

I am still stuck on the first point. Yes, duh, I can't expect PODIO to know what localhost is, so I wrote a one line ASP web app that I have deployed on my test server. While I can hit it from anywhere else I have tried, PODIO fails to ping my server. Here is the URL now: http://ftlwstevedie01.eng.citrite.net/obutils/Reloc.aspx
As I said, I tried this from several machines, in both the citrite and eng domans, and all in other cases it worked, yet when I click Verify web hook from PODIO, there is no request detected. What else am I missing?

Thanks,
-Steve

On Mon, Jun 18, 2012 at 9:48 AM, Nick Barnwell <ni...@boltoncomputing.com<mailto:ni...@boltoncomputing.com>> wrote:
I would start by verifying you've provided an FQDN as the hook target; if you give Podio localhost as the address to hit you're not going to see many requests reaching your server ;)

The 'code' parameter in the hook verification POSTed to your server is the code you supply in the 'validate' call back to the Podio server:

https://developers.podio.com/doc/hooks/validate-hook-verification-215241

The flow then looks like this:


1. Register Webhook with Podio
2. Podio POSTs to URL supplied as web hook endpoint in step 1 with the below body:
* {type:'hook.verify', 'hook_id': $id, code: '$someOneTimeToken' }
3. Take the code param from 2.1 and make a POST to the url of '/hook/{hook_id}/verify/validate' with the body
* { code '$2.1code' }

Your hook should now be validated
From: Steve Dieckbrader <stev...@gmail.com<mailto:stev...@gmail.com>>
Reply-To: "podi...@googlegroups.com<mailto:podi...@googlegroups.com>" <podi...@googlegroups.com<mailto:podi...@googlegroups.com>>
Date: Monday, June 18, 2012 6:39 AM
To: "podi...@googlegroups.com<mailto:podi...@googlegroups.com>" <podi...@googlegroups.com<mailto:podi...@googlegroups.com>>

Steven Dieckbrader

unread,
Jun 19, 2012, 9:50:59 AM6/19/12
to podi...@googlegroups.com
OK, it is starting to become a little clearer. Yes, I suspect you are correct--PODIO is not able to access our network. Can you ping [ftlwstevedie01.eng.citrite.net], or my IP directly: [10.15.36.164]?
Thanks,
-Steve

Phil Chambers

unread,
Jun 19, 2012, 9:55:18 AM6/19/12
to podi...@googlegroups.com
Hi Steve,

No, Podio cannot access internal IP addresses - that is a 10.* range. Can you try this with an externally accessible service?

Cheers,
Phil


On Tuesday, 19 June 2012 15:50:59 UTC+2, Steve Dieckbrader wrote:
OK, it is starting to become a little clearer. Yes, I suspect you are correct--PODIO is not able to access our network. Can you ping [ftlwstevedie01.eng.citrite.net], or my IP directly: [10.15.36.164]?
Thanks,
-Steve

On Mon, Jun 18, 2012 at 6:58 PM, Nick Barnwell <ni...@boltoncomputing.com> wrote:
Always best to start with the simple things, I've certainly done similar stuff before and needed it pointed it out to me :)

I'm not in a position to test right now, but none of my systems that rely on hooks have thrown any errors regarding validation, and when I try and access the URL you've provided I receive a timeout on DNS lookup and am unable to access the server. It looks like that hostname is not accessible from outside your network? I tried from both Google and my university's cluster with no success. I imagine it's the same for Podio's servers, and the reason you're never seeing a POST is that one is never reaching you.

Cheers,
Nick

________________________________________
From: podi...@googlegroups.com [podi...@googlegroups.com] on behalf of Steven Dieckbrader [stev...@gmail.com]
Sent: Monday, June 18, 2012 1:43 PM
To: podi...@googlegroups.com
Subject: Re: [podio-api] A fully functioning example of Web Hooks, please

Hi Nick,

I am still stuck on the first point. Yes, duh, I can't expect PODIO to know what localhost is, so I wrote a one line ASP web app that I have deployed on my test server. While I can hit it from anywhere else I have tried, PODIO fails to ping my server. Here is the URL now: http://ftlwstevedie01.eng.citrite.net/obutils/Reloc.aspx
As I said, I tried this from several machines, in both the citrite and eng domans, and all in other cases it worked, yet when I click Verify web hook from PODIO, there is no request detected. What else am I missing?

Thanks,
-Steve

On Mon, Jun 18, 2012 at 9:48 AM, Nick Barnwell <ni...@boltoncomputing.com<mailto:nick@boltoncomputing.com>> wrote:
I would start by verifying you've provided an FQDN as the hook target; if you give Podio localhost as the address to hit you're not going to see many requests reaching your server ;)

The 'code' parameter in the hook verification POSTed to your server is the code you supply in the 'validate' call back to the Podio server:

https://developers.podio.com/doc/hooks/validate-hook-verification-215241

The flow then looks like this:


 1.  Register Webhook with Podio
 2.  Podio POSTs to URL supplied as web hook endpoint in step 1 with the below body:
    *   {type:'hook.verify', 'hook_id': $id, code: '$someOneTimeToken' }
 3.  Take the code param from 2.1 and make a POST to the url of '/hook/{hook_id}/verify/validate' with the body
    *   { code '$2.1code' }

Your hook should now be validated

Date: Monday, June 18, 2012 6:39 AM

Steven Dieckbrader

unread,
Jun 19, 2012, 11:41:34 AM6/19/12
to podi...@googlegroups.com
Well, that kind of defeats the purpose. I want to develop an ASP.Net application that talks both ways with PODIO, but it appears that I cannot do this because PODIO cannot talk to a server within the citrite domain. Bummer. So, do I tell my manager that it is just not possible or might you have another suggestion as wo how we can integrate internal Citrix tools with PODIO?
Thanks,
-Steve

Nick Barnwell

unread,
Jun 19, 2012, 11:49:46 AM6/19/12
to podi...@googlegroups.com
It's certainly not impossible - all you have to do is expose one server to HTTP - surely your NetOps team can assist you with that?

Alternatively, you could host an endpoint on (Heroku|Azure|[a-Z]+),and have it store all the requests for retrieval by your firewalled server, POP3 for HTTP, if you will. (mixing my metaphors here, but you get the idea)

________________________________________
From: podi...@googlegroups.com [podi...@googlegroups.com] on behalf of Steven Dieckbrader [stev...@gmail.com]
Sent: Tuesday, June 19, 2012 8:41 AM
To: podi...@googlegroups.com
Subject: Re: [podio-api] A fully functioning example of Web Hooks, please

Well, that kind of defeats the purpose. I want to develop an ASP.Net application that talks both ways with PODIO, but it appears that I cannot do this because PODIO cannot talk to a server within the citrite domain. Bummer. So, do I tell my manager that it is just not possible or might you have another suggestion as wo how we can integrate internal Citrix tools with PODIO?
Thanks,
-Steve

On Tue, Jun 19, 2012 at 9:55 AM, Phil Chambers <phillip....@gmail.com<mailto:phillip....@gmail.com>> wrote:
Hi Steve,

No, Podio cannot access internal IP addresses - that is a 10.* range. Can you try this with an externally accessible service?

Cheers,
Phil


On Tuesday, 19 June 2012 15:50:59 UTC+2, Steve Dieckbrader wrote:
OK, it is starting to become a little clearer. Yes, I suspect you are correct--PODIO is not able to access our network. Can you ping [ftlwstevedie01.eng.citrite.net<http://ftlwstevedie01.eng.citrite.net>], or my IP directly: [10.15.36.164]?
Thanks,
-Steve

On Mon, Jun 18, 2012 at 6:58 PM, Nick Barnwell <ni...@boltoncomputing.com<mailto:ni...@boltoncomputing.com>> wrote:
Always best to start with the simple things, I've certainly done similar stuff before and needed it pointed it out to me :)

I'm not in a position to test right now, but none of my systems that rely on hooks have thrown any errors regarding validation, and when I try and access the URL you've provided I receive a timeout on DNS lookup and am unable to access the server. It looks like that hostname is not accessible from outside your network? I tried from both Google and my university's cluster with no success. I imagine it's the same for Podio's servers, and the reason you're never seeing a POST is that one is never reaching you.

Cheers,
Nick

________________________________________
From: podi...@googlegroups.com<mailto:podi...@googlegroups.com> [podi...@googlegroups.com<mailto:podi...@googlegroups.com>] on behalf of Steven Dieckbrader [stev...@gmail.com<mailto:stev...@gmail.com>]
Sent: Monday, June 18, 2012 1:43 PM
To: podi...@googlegroups.com<mailto:podi...@googlegroups.com>
Subject: Re: [podio-api] A fully functioning example of Web Hooks, please

Hi Nick,

I am still stuck on the first point. Yes, duh, I can't expect PODIO to know what localhost is, so I wrote a one line ASP web app that I have deployed on my test server. While I can hit it from anywhere else I have tried, PODIO fails to ping my server. Here is the URL now: http://ftlwstevedie01.eng.citrite.net/obutils/Reloc.aspx
As I said, I tried this from several machines, in both the citrite and eng domans, and all in other cases it worked, yet when I click Verify web hook from PODIO, there is no request detected. What else am I missing?

Thanks,
-Steve

On Mon, Jun 18, 2012 at 9:48 AM, Nick Barnwell <ni...@boltoncomputing.com<mailto:ni...@boltoncomputing.com><mailto:ni...@boltoncomputing.com<mailto:ni...@boltoncomputing.com>>> wrote:
I would start by verifying you've provided an FQDN as the hook target; if you give Podio localhost as the address to hit you're not going to see many requests reaching your server ;)

The 'code' parameter in the hook verification POSTed to your server is the code you supply in the 'validate' call back to the Podio server:

https://developers.podio.com/doc/hooks/validate-hook-verification-215241

The flow then looks like this:


1. Register Webhook with Podio
2. Podio POSTs to URL supplied as web hook endpoint in step 1 with the below body:
* {type:'hook.verify', 'hook_id': $id, code: '$someOneTimeToken' }
3. Take the code param from 2.1 and make a POST to the url of '/hook/{hook_id}/verify/validate' with the body
* { code '$2.1code' }

Your hook should now be validated
From: Steve Dieckbrader <stev...@gmail.com<mailto:stev...@gmail.com><mailto:stev...@gmail.com<mailto:stev...@gmail.com>>>
Reply-To: "podi...@googlegroups.com<mailto:podi...@googlegroups.com><mailto:podi...@googlegroups.com<mailto:podi...@googlegroups.com>>" <podi...@googlegroups.com<mailto:podi...@googlegroups.com><mailto:podi...@googlegroups.com<mailto:podi...@googlegroups.com>>>
Date: Monday, June 18, 2012 6:39 AM
To: "podi...@googlegroups.com<mailto:podi...@googlegroups.com><mailto:podi...@googlegroups.com<mailto:podi...@googlegroups.com>>" <podi...@googlegroups.com<mailto:podi...@googlegroups.com><mailto:podi...@googlegroups.com<mailto:podi...@googlegroups.com>>>
Reply all
Reply to author
Forward
0 new messages