ビュー:

質問:
GAPIを使用してURL Integrationを作成する方法を教えてください。







回答:
使用する適切なネームスペースは、"DocuWare.Gapi.Utils.Web.DWIntegration "です。DWIntegration;
namespace GAPI_WebClientEncyrption

class Program

static void Main(string[] args)


//DWIntegrationURL の準備
DWIntegrationInfo integrationInfo = new DWIntegrationInfo("presentationvm", "DocuWare/Platform/WebClient/", "", false);
integrationInfo.Scheme = "http";
integrationInfo.OrganizationId = "1";
//Example 1: Generate URL plain text
DWIntegrationUrl plaintextURL = new DWIntegrationUrl(integrationInfo, IntegrationType.Viewer);
plaintextURL.Parameters.FileCabinetGuid = new Guid("366f6b7f-af2b-47ac-8ee7-01dbb2211576");
//plaintextURL.Parameters.DocId = "1";
plaintextURL.Parameters.Query = "[FileCabinetGuidParameters.Query = "[COMPANY] = ︓ピーターズエンジニアリング︓ AND [DOCTYPE] = ︓請求書︓";
plaintextURL.Parameters.UserCredentials = new UserCredentials.UserCredentials = new UserCredentials("admin", "admin");
Console.WriteLine("プレーンテキストURL:");
Console.WriteLine(plaintextURL.Url.ToString());

//例 2: 暗号化 URL の生成
DWIntegrationUrlEncrypted encryptedURL = new DWIntegrationUrlEncrypted(integrationInfo, IntegrationType.Viewer, "123MyPassphrase!");
encryptedURL.Parameters.FileCabinetGuid = new Guid("366f6b7f-af2b-47ac-8ee7-01dbb2211576");
encryptedURL.Parameters.DocId = "1";
encryptedURL.Parameters.UserCredentials = new UserCredentials.UserCredentials = new UserCredentials("admin", "admin");

Console.WriteLine("暗号化されたURL:");
Console.WriteLine(encryptedURL.Url.ToString());

//例 3: ログイン URL の生成
DWWebUrlLoginParameters loginParams = new DWWebUrlLoginParameters();
loginParams.UserCredentials = new UserCredentials("admin", "admin");
DWWebClientLoginUrlEncrypted loginUrl = new DWWebClientLoginUrlEncrypted(integrationInfo, loginParams, "123MyPassphrase!");
Console.WriteLine("ログインURL:");
Console.WriteLine(loginUrl.Url.ToString());
Console.ReadLine();

 

ご注意:この記事は英語からの翻訳です。この記事に含まれる情報は、オリジナルの英語版製品に基づくものです。翻訳版の記事で使用されている文法などには、細かい誤りがある場合があります。翻訳の正確さを完全に保証することは出来かねますが、ほとんどの場合、十分な情報が得られると思われます。万が一、疑問が生じた場合は、英語版の記事に切り替えてご覧ください。