how do I use smugmug.albums.create with REST from C++?
figbug
Registered Users Posts: 41 Big grins
I'm writing an app in C++ and using the REST api. So far it is working well. I can log in, get the list of albums and categories.
What I don't understand is how to pass a struct. For most things, I just add parameters to my url. But what do I do for a struct? Does anybody have an example?
What I don't understand is how to pass a struct. For most things, I just add parameters to my url. But what do I do for a struct? Does anybody have an example?
0
Comments
Technically, the struct only applies to XML-RPC, just pass the parameters in by name as you are doing for the other calls.
Cheers,
David
SmugMug API Developer
My Photos
Wow, thanks for the quick reply. That sounds easy enough, I'll give it a try.
The error I'm getting is: err code="5" msg="system error (nogallery)"
What does that mean, I'm pretty sure I'm giving a valid gallery id.
Can you please post your header for this message.
Thanks,
David
SmugMug API Developer
My Photos
I got it figured out. I was putting an extra \r\n in my headers.
Thanks for your help... my app is now uploading. This smug mug api is pretty slick.
great
SmugMug API Developer
My Photos