接続の確立
コネクタ内で利用可能なオブジェクトは、"cdata.sapfieldglass" モジュールからアクセスできます。モジュールのオブジェクトを直接使用するには、はじめに以下のようにモジュールをインポートする必要があります。
import cdata.sapfieldglass as mod
そこで、コネクタオブジェクトからconnect() メソッドを呼び出すと、以下のような適切な接続文字列を使用して接続を確立できます。
mod.connect("EnvironmentURL='https://myinstance.com';User=myuser;Password=mypassword;APIKey=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;")
Connecting to SAPFieldglass
To authenticate, you will need to specify the User, Password, APIKey, and EnvironmentURL connection properties.
To obtain an APIKey, log in to the SAP API Business Hub and click on Get API Key.