Set Up a Self-Service Marketing Trial
Note
This article describes functions exposed by CloudShare's REST API. For API documentation, see http://docs.cloudshare.com/rest-api/v3/overview/.
With just one call to CloudShare's REST API you can build a simple flow into your website that serves visitors a controlled product trial.
CloudShare takes all the grunt work out of setting up a controlled and monitored trial on the cloud while minimizing your resource costs. You'll also be able to easily monitor and follow up on the trial usage.
A CloudShare sponsored link generates and opens an environment of your design and logs the user into the environment. The user does not need to log into CloudShare or use the CloudShare's web UI.
With a simple request to the CloudShare REST API, your website can generate a sponsored link based on a prototype environment that you prepared and serve the environment to your prospective customer.
The link works within a defined time period and the environment lasts as long as its policy specifies. You can choose to suspend the environment automatically after any period of inactivity. You pay only for the resources actually used.
A typical flow for a web based controlled trial looks like this:

As you can see in the flow, a simple call to our API returns a token that lets you redirect trial users to their own personal product trials.
First, prepare your prototype trial environment (See Create an Environment) and set it up to run your product exactly as you want your trial users to experience your product. When the environment is ready to use as a prototype, take a snapshot. The blueprint that contains the snapshot you took will serve as the prototype for the trial environments.
You also need to make sure you have the environment policy defined as needed for your trial environments. The policy controls the total runtime and storage time for each environment, and what happens to each environment after a period of inactivity.
You'll need the ID of your blueprint, policy and the region the blueprint is stored on.
You might like to stay logged into CloudShare and simply append some of our REST API's GET functions to the URL.
For the project ID:
Invoke
GET /api/v3/projects
to return project data. In the response, find the project by name and make note of the id of that project.
Using the project ID, invoke the following functions to get the remaining IDs you need:
The blueprint ID:
GET /api/v3/projects/<projectId>/blueprints
The policy ID:
GET /api/v3/projects/<projectId>/policies
The region ID (the region the blueprint is stored on, or the one you want to serve the environments from if it's on multiple regions):
GET /api/v3/regions
If you want the environments served to be owned by a specific project member, you'll also need the project member's ID. If you don't specify this, the request caller ID is used automatically. You can retrieve project member IDs (and all of the above IDs too) by calling the OPTIONS /api/v3/sponsoredlinks
API function. Project members are returned under owningProjectMembers
in the response.
Call POST /api/v3/sponsoredlinks
to generate the sponsored link.
For example:
POST /api/v3/sponsoredlinks { "email": "Wain45@spam.me", "FirstName": "Wain", "LastName": "Smith", "JobTitle": "manager", "PhoneNumber": "012-345678", "Company": "Wain's Company", "PolicyId": "POLs3J1NEAESn7ipYMwYq20Q2", "BlueprintId": "BPitsTtiUS27hEsHcVZcZsxw2", "UseLatestSnapshot": false, "ExpirationMinutes": 15, "regionId": "REKolD1-ab84YIxODeMGob9A2", "allowMultipleUsages": false }
Once your trial is underway, you can view its engagement level and other details.
-
In the Environments list, filter to see all End Users Environments.
Check the Status and other details of the End User environments you've generated.
Optionally, from the Blueprint dropdown, you can select the specific Blueprint used for the trial to narrow the list.
For additional trial environment information, from the Environments list, click the Name of an environment. The Environment Details page will be displayed with more details. You can also choose to view the trial environment itself from this page.
To see the level of engagement for a user, from the End Users page, click the Email of a specific user. The User Details page will be displayed, where you can see the total Usage time for that user.
Comments
0 comments
Article is closed for comments.