PhotosetsCreate doesn't work

Topics: Developer Forum, Project Management Forum, User Forum
Oct 30, 2013 at 7:21 AM
I wanna create a new Photoset in my code:
Flickr flickr = new Flickr("key", "secret");
PhotosetCollection sets = FlickrBLL.GetPhotoSetsByUser("userId");
string primaryPhotoId = sets[0].PrimaryPhotoId;
Photoset set = flickr.PhotosetsCreate("CuongImage", "hello new collection", primaryPhotoId );
I got error "oauth exception occurred parameter_absent flickr"
Oct 31, 2013 at 4:25 PM
You haven't set the OAuthToken and OAuthTokenSecret properties. You need to set these as the call to PhotosetsCreate requires authentication.

Sorry the error isn't better, I'll try and fix that.