$key]); try { // define the endpoint APIResource::$endpoint = 'templates'; $templateConfig = [ 'name' => 'Summer Sale!', 'id'=>'summer-sale', 'content'=> [ 'from' => 'john.doe@sparkpostbox.com', 'subject' => 'Summer deals', 'html' => 'Check out these deals!' ] ]; $results = APIResource::create($templateConfig); var_dump($results); echo 'Congrats you can use your SDK!'; } catch (\Exception $exception) { echo $exception->getMessage(); } ?>