Skip to content

Instantly share code, notes, and snippets.

@twmills
Created October 8, 2014 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twmills/7649e6abbb4642b6cec3 to your computer and use it in GitHub Desktop.
Save twmills/7649e6abbb4642b6cec3 to your computer and use it in GitHub Desktop.
authentication example
<?php
$method = "post";
$path = "/presta/index.php";
$params = $_POST;
$json_body = http_get_request_body();
$authenticator = new ShippingEasy_Authenticator($method, $path, $params, $json_body);
$authenticator->isAuthenticated();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment