Skip to main content
Published: November 01 2006, 1:42:00 PMUpdated: November 28 2020, 2:57:53 PM

Is there sample code on using SetNotificationPreferences with the .NET SDK?

SetNotificationPreferences sample implemented in C# using Visual Studio .NET (original version, not 2003 or 2005) using eBay SDK v479.0 for .NET

SetNotificationPreferences sample implemented in C# using Visual Studio .NET (original version, not 2003 or 2005) using eBay SDK v479.0 for .NET

Detailed Description

The attached command line sample project contains an implementation of SetNotificationPreferences.

Requirements:

Any version of Visual Studio .NET

The attached project uses the original version of Visual Studio .NET
If you have a newer version of Visual Studio .NET, you should let it automatically convert the project when prompted to do so. This will result in a project that is fully functional for the Visual Studio .NET verison that you are using.

1. Before you build this sample project, please make sure to check that the project's reference to eBay.Service is valid.
The path to this reference is D:\Program Files\eBay\eBay .NET SDK v479 Full Release\eBay.Service.dll in this sample.
If needed, remove the existing reference, and add the reference again pointing to whereever this file is on your computer.

2. Before you run the sample, you will need to fill in your information in place of the "xxx" in the following lines of source code:

// set the dev,app,cert information
oContext.ApiCredential.ApiAccount.Developer = "xxx";
oContext.ApiCredential.ApiAccount.Application = "xxx";
oContext.ApiCredential.ApiAccount.Certificate = "xxx";

// set the AuthToken
oContext.ApiCredential.eBayToken = "xxx";

Please note that the default API URL is set to Production:
oContext.SoapApiServerUrl = "https://api.ebay.com/wsapi";


Version Info

The attached project is based on the following versions:

.NET SDK Version 479 Full Release
Visual Studio Original .NET (not 2003 or 2005)



Additional Resources

How well did this answer your question?
Answers others found helpful