How to access the thinkery API using PHP