Reply
Highlighted
New Contributor
Posts: 3
Registered: ‎06-01-2016

Aruba Beacons - Custom endpoint notifications

Hello,

 

I'm tryint to do some test of Custom endpoint notifications with the Aruba Beacons and Meridian.

 

When I press the test bottom to check the target URL (in this case http://httpbin.org/html) i get this -->

Error: Uh oh - there was a problem triggering that endpoint. Status: 400 (Received bad status code 405 from url http://httpbin.org/html).

 

I also tried with other URL (http://google.com), and i recived the same error.

 

Could someone tell me whats wrong  and give me a URL that works to test a custom endpoint campaign?

 

Thank you!

MVP
Posts: 554
Registered: ‎11-04-2011

Re: Aruba Beacons - Custom endpoint notifications

Ramon,

 

The external trigger URL should receive and interprete the JSON data that Meridian sends to it. So you need some dedicated PHP script or web application there, instead of pointing it to an arbitrary web site.

 

I created a short video around this question that shows the data coming in from the Meridian cloud and a web-app responding to that. This video is here: https://www.youtube.com/watch?v=DIF4SqyQkdI

 

Hope that video answers your question.

 

Example data coming in from Meridian (note it comes in in json format, not the format below):

(
    [is_enter] => true
    [campaign_id] => 5647648723828736
    [broadcaster_id] => 85BAEDEA-1ACE-404B-874D-29AC21C18D58:16005:17491
    [device_id] => 318e22ed-7450-39a6-bbad-c6eb19d3b79b:com.arubanetworks.campus
)

And if I have an (OAUTH) authenticated request, it has an additional authentication_token:

(
    [is_enter] => true
    [access_token] => bf5268e4a9baa3835c5be135e4715073f93a559e
    [campaign_id] => 5647648723828736
    [broadcaster_id] => 85BAEDEA-1ACE-404B-874D-29AC21C18D58:16005:17491
    [device_id] => 3da7cf8c-7cae-3b71-8a73-d2a078c67744:com.arubanetworks.campus
)

The access_token can be used to lookup the user information (in my case my Name and e-mail) and use it on your server.

 

Herman

--
If you have urgent issues, please contact your Aruba partner or Aruba TAC (click for contact details).
New Contributor
Posts: 3
Registered: ‎06-01-2016

Re: Aruba Beacons - Custom endpoint notifications

Thank you very much Herman!

a very usefull video :)


Herman Robers wrote:

Ramon,

 

The external trigger URL should receive and interprete the JSON data that Meridian sends to it. So you need some dedicated PHP script or web application there, instead of pointing it to an arbitrary web site.

 

I created a short video around this question that shows the data coming in from the Meridian cloud and a web-app responding to that. This video is here: https://www.youtube.com/watch?v=DIF4SqyQkdI

 

Hope that video answers your question.

 

Example data coming in from Meridian (note it comes in in json format, not the format below):

(
    [is_enter] => true
    [campaign_id] => 5647648723828736
    [broadcaster_id] => 85BAEDEA-1ACE-404B-874D-29AC21C18D58:16005:17491
    [device_id] => 318e22ed-7450-39a6-bbad-c6eb19d3b79b:com.arubanetworks.campus
)

And if I have an (OAUTH) authenticated request, it has an additional authentication_token:

(
    [is_enter] => true
    [access_token] => bf5268e4a9baa3835c5be135e4715073f93a559e
    [campaign_id] => 5647648723828736
    [broadcaster_id] => 85BAEDEA-1ACE-404B-874D-29AC21C18D58:16005:17491
    [device_id] => 3da7cf8c-7cae-3b71-8a73-d2a078c67744:com.arubanetworks.campus
)

The access_token can be used to lookup the user information (in my case my Name and e-mail) and use it on your server.

 

Herman




Aruba Employee
Posts: 27
Registered: ‎11-02-2015

Re: Aruba Beacons - Custom endpoint notifications

We've found that http://requestb.in works pretty well for us as a testing custom endpoint.

 

Cheers,

Shawn

Search Airheads
Showing results for 
Search instead for 
Did you mean: