Skip to content

Instantly share code, notes, and snippets.

View mr119's full-sized avatar

M19 mr119

View GitHub Profile
@mr119
mr119 / OnApp-API-Example.php
Created April 20, 2021 13:12
OnApp API Example on CloudCone Private Clouds
<?php
# Set these values based on your login details
$cloud_url = 'https://cloudcone.cloud.url.com';
$username = 'user';
$password = 'password';
function APICall($path, $type, $post_params = array())
{
global $cloud_url, $username, $password;