製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

ShipStation ADO.NET Provider

ShipStation データに連携する.NET アプリケーションを素早く、簡単に開発できる便利なドライバー。

データ連携でお困りですか?

お問い合わせ

Powershell からの ShipStation データ連携タスクを自動化


PowerShell から ShipStation に簡単に接続する方法をお探しですか? CData ADO.NET Provider for ShipStation は、PowerShell スクリプトの優位性を使い、シンプルで簡単に使えるADO.NET インターフェース を提供します。PowerShell スクリプトで、ADO.NET オブジェクトを使って簡単にShipStation に接続して、同期、自動化、ダウンロードなどが可能!


加藤龍彦
ウェブデベロッパー



CData ADO.NET Provider for ShipStation は、ADO.NET 標準インターフェースへ統合し、PowerShell のような. NET アプリケーションからShipStation API へのデータ連携を可能にします。このプロバイダーは、ShipStation の認証および相互作用を簡単にします。このチュートリアルでは、PowerShell から直接SQL クエリを実行するための、いくつかの一般的なADO.NET オブジェクトの使い方を説明します。

CRUD コマンドの実行

次の3つのステップに従って SELECT クエリ PowerShell からリアルタイムShipStation に実行:

  1. プロバイダーのアセンブリをロード:

    [Reflection.Assembly]::LoadFile("C:\Program Files\CData\CData ADO.NET Provider for ShipStation\lib\System.Data.CData.ShipStation.dll")
  2. ShipStation に接続:

    Use the BASIC Authentication standard to connect.

    1. Login to your ShipStation account
    2. Click on the settings icon in the upper right corner. A column menu will show up on the left
    3. Click Account -> API Settings
    4. On the API Settings page, note the API Key and API Secret.

    Authenticating to ShipStation

    • APIKey: Set this to the API key from the API settings page.
    • APISecret: Set this to the Secret key from the API settings page.

    $constr = "APIKey='YourAPIKey';APISecret='YourAPISecret'" $conn= New-Object System.Data.CData.ShipStation.ShipStationConnection($constr) $conn.Open()
  3. ShipStationDataAdapter のインスタンスを生成してSQL クエリを実行し、結果を出力:

    $sql="SELECT Id, Color from Tags" $da= New-Object System.Data.CData.ShipStation.ShipStationDataAdapter($sql, $conn) $dt= New-Object System.Data.DataTable $da.Fill($dt) $dt.Rows | foreach { Write-Host $_.id $_.color }