For those users of PHP looking for a really simple way to access the advanced features available only through our REST API, it now takes only 2 minutes to get started using our PHP REST Client library download, available here (see Available Libraries) as a PHP include file.
How easy is it really? Very! Here’s an example of some PHP code, using the provided include file, to get the number of credits available on your account:
<?php include_once('TMRestClient.php'); $tmClient = new TMRestClient('myuser', 'mypass', 'production'); $credits = $tmClient->getCredits(); echo "I have $credits credits."; ?>
No related posts.