PHP : How do I get the token without a user / browser interface?

I’m trying to run this in command line.
<?php $token = ""; # How do I populate this ? $url = "$token"; $data = file_get_contents($url); echo $data; ?>

Hi, @Dave_Lavinsky,

You’re going to need to get to know the three legged approach that IS uses with OAuth. I have a video on the subject I’ll paste below: