There isn't much setup that needs to be done at all. Just:
  • Merge the App.config into either your App.config or your Web.config.
  • Enter your access key, shared secret, and source filter Id (if you have one) into the configuration file.
That's it!


Here is some sample code on how to use the client:

DayPIClient client = new DayPIClient();

Request request = client.CreateRequestTopic_GetRelatedArticles(
	"Politics",
	TopicSearchByEnum.Name,
	null,
	null,
	10,
	0,
	SortByEnum.Date,
	null,
	null,
	false,
	null,
	null,
	true,
	false,
	true,
	false
);

Response response = client.GetResponse(request);


client.ClearQueue();

client.AddRequestToQueue("QueueItem#1", client.CreateRequestTopic_GetInfo(
		"Politics",
		TopicSearchByEnum.Name,
		true,
		true
	)
);

client.AddRequestToQueue("QueueItem#2", client.CreateRequestTopic_GetRelatedTopics(
		"Politics",
		TopicSearchByEnum.Name,
		DateTimeOffset.Now,
		DateTimeOffset.Now.AddDays(-90),
		100,
		0,
		SortByEnum.Date,
		null,
		null,
		null,
		null,
		new string[] { "person" },
		true
	)
);

int requestQueueCount = client.RequestQueueCount;
BatchResponse batchResponse = client.ProcessQueue();


If you have any questions or discover a bug, please create a discussion post.

Last edited Mar 25, 2012 at 8:06 PM by KaelumYodi, version 4