“eBay Basics” C# Example
For the (numerous) user group talks I’ve been doing in the past few months, I’ve spent most of my time with one demo that shows three common eBay API calls — GeteBayOfficialTime (the “hello world” of eBay programming), AddItem, and GetSearchResults. Several people have asked me to make this demo available, so here you go:
Update: I finally got around to revising this to support the authentication system we rolled out last year — you can now find this example on our examples site.
Related posts:
oops, posted on the wrong topic.
I have been playing around with the SDK through asp.net (C#) and had everything working great till A&A came along.
Do you have a working example of A&A in vb.net or c#? I have been looking for weeks and have found nothing. The eBay Developers forum hasn’t been much help either. There are alot of people screaming for a sample web app.
Thanks in advance!
Hey Eric,
The SDKBasics example posted here actually does use the new authentication & authorization scheme. Because it’s not a web app, it doesn’t do the redirect flow, though. I would recommend that you download the latest version of the SDK, it has examples in there that demonstrate how to authenticate using token.
Having gone through the whole A&A ordeal, I’ve got C# code samples that will let you set and retrieve the RUName and other parameters required to get A&A working for a specific developer ID.
For our project, we have to store the tokens for hundreds of clients so we needed something where we could pass in a clientID (that is unique to our app) and then retrieve the token for that client, among other things. It’s not that difficult to do, but I’ll send the code and DB scripts to anyone if it will help them get their minds around the A&A stuff.
I’ve downloaded the McManus eBay source code from 3 different sites, and my Visual Studio .NET Version 2002 wont open any of them. It always says:
Unable to read the project file SDKBasics.csproj. The project SDKBasics.csproj was created with a newer version of Visual Studio which is incompatible with your version. You can only open this project with newer versions of Visual Studio.
Jeffrey, can you offer up a version that will work for all versions? Does anyone out there have a source code that will work for VS 2002, or a solution to this problem Im having?
Any help that could be posted to this site would be much appreciated.
Thanks, Jim
Hi Jeffrey!
I would be quite interested in having a look at the A&A source code if you could please email it to me.
Thanks in advance!
Sal.
Sal, just download the SDK from developer.ebay.com, it has all the examples you should need.