EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

MicroStrategy APIs: Cloud and Dataset Code


Henri-Francois Chadeisson

Director, Sales Engineering • MicroStrategy


Description

This article will showcase how to programmatically start an environment, push data in-memory, and stop the environment.
Note that this the sample code and data file used for the MicroStrategy APIs - Cloud and Dataset .
This code uses PHP and PHP-CURL library.
Before using these script, you'll need to edit 2 files:
 

  1. apikey.php - Set your Cloud API Key.


 


<?php
/*
** Insert your Cloud API Key here. Can be generated from the Cloud Provisioning console
*/

$api_key = 'api_key_goes_here';
?>

 

  1. parameters.php - Set Environment ID, mstr user login, and password.


 


<?php
$environmentId = 00000;
$apilogin = 'login';
$apipassword = 'password';

$x_iservername = 'env-'.$environmentId.'laiouse1';
$x_port = 34952;

/*
** Adjust project name if necessary
*/

$x_projectname = 'Strategy Tutorial';

?>

​Learning Resources


Interested in learning more about Strategy APIs? Visit the Learning Center on Community!
Or go to our Documentation pages for more product information.
 


Comment

0 comments

Details

Example

Published:

May 26, 2017

Last Updated:

September 16, 2019