Help with the SmugMug API in .NET

pShahpShah Registered Users Posts: 2 Beginner grinner
Hi,
I have mostly been a Database developer for the past few years and did some coding in C# here and there. I want to use the API to find the relationship between the filename and the URL. This has recently been mentioned in details in this thread -
Short of using the API any other way to link images using Friendly URL's

I tried using an existing .NET wrapper (Evan Leventhal's .NET wrapper. SmugMug.NET). I got the latest version of the wrapper, but there is an error in the code of the Demo Form

I am encountering an error when I click on "Get Images" from the demo program.

The call throwing this error is: Image[] images = _sm.GetImagesWithInfo(albumID);

Error Message (Partial):
" The error is: System.Exception was unhandled
Message="False is not a valid value for Int32." "

My question is:

Is there anyone who has used this wrapper or any other wrapper for .NET that would be helpful. Or knows the contact information for the author.

Also if I am working with .NET and assume that I cannot use the wrapper, which of the API versions should I be working with and how do I make it work in .NET. I tried adding a Web Service Reference and tried the different API links, but each gave an error. I am sure there is an additional step I am just trying to find out what that is?

Thanks,
pShah

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited October 11, 2010
    Hey pShah,

    Maybe try this wrapper, I'm pretty sure it's been worked on more recently than Evan's one/

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • pShahpShah Registered Users Posts: 2 Beginner grinner
    edited October 15, 2010
    Thanks I will try it.

    Also if anyone else is wondering I was able to get the source code for the previously mentioned wrapper and achieve the results I wanted.
    devbobo wrote: »
    Hey pShah,

    Maybe try this wrapper, I'm pretty sure it's been worked on more recently than Evan's one/

    Cheers,

    David
Sign In or Register to comment.