Using PHP to authorize API usage.