From what it looks like, you would just throw it in the constructor.
Example:
<?php
$rest = new RestRequest("yourAPIkey");
?>
Then you can do the rest. I noticed this because in the constructor it has
public function __construct ($apikey = null) {
Which means when you open the new class whatever variable is in the function __construct is what you would send in the new class.
Hope this helps.