Before making requests, you need an Auth Token.
To get your Token, log into Fomo and visit Settings > Site after selecting a website. The auth token will be near the bottom.
Note: API access is only available by default to users on a Paid plan -- you will not see an auth token otherwise. If you need to make test calls before upgrading, [send us an email](mailto:[email protected]?subject=Need free api credits) and we'll set it up.
$client = new FomoClient($authToken);
var client = new FomoClient('<token>');
client = Fomo.FomoClient('<token>')
client = Fomo.new('<token>')