2016-12-16

We are very excited to announce the launch of our new open-source myCloudData.net REST client for Delphi & C++Builder.
The myCloudData REST Client is completely free and open-source and hosted on Github, this means that you can freely use or customize the code for your commercial or hobby projects.

Our goal was to provide you with an easy way of using the myCloudData.net service in all your applications,
without having to worry about all the difficulties that come with integrating with a complex REST service.

The myCloudData REST Client takes care of handling the HTTP requests, the parsing of the JSON responses and the OAUTH2 authentication.
All you have to do is drag the component on to your form and you can start using your cloud databases as they were local databases.

The library is developed from the ground up and is based on the REST technology that is included in RAD Studio 10.1 Berlin.
It can be used with your Delphi, C++Builder, RAD Studio 10.1 Berlin IDE as-is, no need to install extra commercial libraries. There is a REST client for VCL applications (for Win32/Win64) and FMX applications (for Win32/Win64/iOS/macOS/Android)

To get you started, here are some highlights of commonly used patterns in consuming structured cloud data storage via myCloudData.net.

Some simple code examples

Creating a table

Typically, at the startup of your application, you'll want to check if the table you want to work with already exists on the current myCloudData account.
The code example below does just that, it looks for the table on the Tables property of the myCloudData component and if it isn't found it will create the table with all the necessary fields.

Working with the entities

Once you have your table, let's add some data to it.
The next example shows how you can insert a new entity and populate its fields.

The following code shows you how to query the table and retrieve existing entities.

Blobs

All the above examples work for both the free and the subscription accounts on myCloudData.net.

However, working with blob fields requires you to be connected with a subscription account.

To avoid unexpected behaviour, you'll always want to check if the current user can use the blob feature before actually creating or using a blob field.

This example shows how you can create a blob field in a table.

Saving a new file to the blob field can be done as follows.

We invite you to start experimenting with these new free REST client components and we are very eager to learn how these will be used to build your creative & amazing apps with myCloudData.net and RAD Studio 10.1 Berlin.

Please take a look at the Github repository and let us know what you think!

Show more