beautypg.com

Content sources, Building your applications – Google Search Appliance Administrative API Developers Guide: .NET User Manual

Page 7

background image

Google Search Appliance: Administrative API Developer’s Guide: .NET

7

Building Your Applications

This section explains how to build your own applications using the client library outside the solution file
provided by the ZIP archive.

To build an application:

1.

Copy the following client library DLL files from the cs\lib folder to your development folder and
add them in the reference path:

Google.GData.Apps.dll

Google.GData.Client.dll

Google.GData.Extensions.dll

Google.GData.Gsa.dll

2.

In Visual Studio, create or open a new project.

3.

Click Project > Add Reference.

4.

Click the Browse tab and navigate to the folder where you copied the DLL files.

5.

Select the DLLs to use in your project.

Authenticating Your Google Search Appliance Account

Before making API calls with the .NET client library, you must construct a new GsaService object.

In the constructor that follows, replace myUserId and myPassword with your Admin Console
authentication information:

using Google.GData.Gsa;
GsaService myService = new GsaService(gsaAddr, gsaPort, "myUserId",

"myPassword"));

Content Sources

The sections that follow describe how to configure the Content Sources features of the Admin Console:

“Crawl URLs” on page 8

“Data Source Feeds” on page 9

“Crawl Schedule” on page 12

“Crawler Access Rules” on page 12

“Host Load Schedule” on page 15

“Freshness Tuning” on page 16

“Connector Managers” on page 17

“OneBox Modules Settings” on page 18

“OneBox Modules Retrieve and Delete” on page 19

“Pause or Resume Crawl” on page 20