Cloud

Google Book APIを使ってISBNコードから書籍情報を取得する 筑木です。今回はWebAPIへのアクセスの例として、Google Books APIsを使ってISBNコードから書籍情報を取得してみます。 応用として、TCameraComponentとZXingを使って画像のバーコードから書籍のISBNコードを読み取り、Google Books APIsで書籍情報を取得、それをDBに登録して蔵書管理アプリみたいなものが作れます。 Google Books APIsにISBNコードを投げてその結果を取得するのは、TRESTRequest、TRESTClient、TRESTResponseを使えば非常に簡単です。このようにフォームにUIであるTEdit,TLabel,TMemo,TImageと、Google Books APIsとやりとりをするためのTRESTRequest、TRESTClient、TRESTResponse、TIdHTTPを配置します。 配置したTRESTRequestのClientとResponseプロパティにそれぞれTRESTClient、TRESTResponseを設定します。 実際にAPIを呼び出してみましょう。TR...
Microsoft Azure App Service(ISAPI) 上でDataSnapを利用する Microsoft Azureには App Serviceと言うIIS機能だけを提供しているサービスがあります。 ISAPIが利用可能なので Delphi / C++Builder DataSnapをApp Service上でISAPIとして実行します。 App Serviceを登録します 1.新規作成 サイト名など情報を入力します 発行プロファイル取得 発行プロファイルを取得をクリックするとxml形式の*.PublishSettingsがダウンロードされます   Delphi / C++Builder側でDataSnap(ISAPI)のDLLを作成 新規プロジェクトファイルから「DataSnap Server」「DataSnap Server WebBroker アプリケーション」でプロジェクトを作成します。 ISAPIダイナミックリンクライブラリにチェックを入れて[次へ >>]   ビルド構成をWin32[Release]にします(プロジェクト名はtest1121.dllにしました) ビルドすると...
Webinars this week! Migrate Your Database Apps to FireDAC, InterBase and RAD Server This week is all about upgrading your Delphi database applications. Not only it is the last chance to save big on upgrading to the latest version of Delphi with 10% discount and free mobile and bonus packs, but there are also two globally available free webinars on Wednesday and Thursday that will discuss the technical details of Migrating Your Database Applications to FireDAC and InterBase (youtube recording) RAD Server Scalable Cloud Deployment There are many dimensions to the process o...
Five ThingConnect IoT Devices You Can Easily Integrate With Your Apps If you are looking to wire up your home or office with smart technologies there are a number of devices that you can easily connect to and control from Delphi and C++Builder. These smart IoT devices that are part of ThingConnect. Bluetooth LE and Z-Wave are two technologies that are supported by ThingConnect. Bluetooth Low Energy (Bluetooth LE) or Smart Bluetooth provides a new environment for devices with small amount of data to transfer and lower power consumption. The Z-Wave protocol is an in...
RAD Studio 10.1 Berlin, REST/JSON and using a fun site: Name2Gender.com I was thinking about how I would do a gender based analysis of our customer database without surveying our customers. The Embarcadero Community profile does not ask whether you are male or female. At the recent Evans Data Developer Relations Conference, there was a presentation about the number of developers in the world (currently around 19 million going up to 25 million in 2020). Evans Data puts the global number of female developers near 20%. In a November 2015 report, IDC said that "24% of N...

Check out more tips and tricks in this development video: