Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mimeoconnect/900716 to your computer and use it in GitHub Desktop.

Select an option

Save mimeoconnect/900716 to your computer and use it in GitHub Desktop.
Pulls the main address associated with authenticated users account.
<?php
require_once "rest_client.php";
//Sandbox
//$root_url = "connect.sandbox.mimeo.com/2010/09/";
$user_name = "[user name]";
$password = "[user password]";
//Live
$root_url = "connect.mimeo.com/2010/09/";
$user_name = "[user name]";
$password = "[user password]";
$rest = new RESTclient($root_url,$user_name,$password);
$url = "/AddressBookService/GetUserMainAddress";;
$rest->createRequest($url,"GET","");
$rest->sendRequest();
$output = $rest->getResponseBody();
//echo $output;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment