Difference between revisions of "Geoblocking API"

From DocuWiki
(Created page with "Location API allows you to perform various checks against a viewers' IP address in order to ensure that they would be able to view content in a given region. == Exclude == =...")
 
(Check)
Line 3: Line 3:
 
== Exclude ==
 
== Exclude ==
 
== Check ==
 
== Check ==
 +
Performs a lookup based on a viewers' IP address to see if they fall inside the allowable geographic region for a video.  This is useful when checking to see if a user is able to view a video before allowing them to purchase it for example.
  
 +
=== Request URL ===
 +
http://console.247platform.com/api/location/check/?streamname=[Stream Name]&ip=[Viewers IP]&sessionId=[Session ID]&userId=[Client Id]
 +
 +
=== Params===
 +
* streamname (string) (required) Stream name of video checking against, e.g. ab-1234-live
 +
* ip (string) (required) Viewers IP address to check against.
 +
 +
== Response ==
 +
 +
== Errors ==
 
[[Category:API]]
 
[[Category:API]]

Revision as of 11:56, 26 February 2014

Location API allows you to perform various checks against a viewers' IP address in order to ensure that they would be able to view content in a given region.

Exclude

Check

Performs a lookup based on a viewers' IP address to see if they fall inside the allowable geographic region for a video. This is useful when checking to see if a user is able to view a video before allowing them to purchase it for example.

Request URL

http://console.247platform.com/api/location/check/?streamname=[Stream Name]&ip=[Viewers IP]&sessionId=[Session ID]&userId=[Client Id]

Params

  • streamname (string) (required) Stream name of video checking against, e.g. ab-1234-live
  • ip (string) (required) Viewers IP address to check against.

Response

Errors