sharegroups.getinfo not working
GarethLewin
Registered Users Posts: 95 Big grins
I tried it with
http://api.smugmug.com/services/api/rest/1.2.1/?method=smugmug.sharegroups.getInfo&SessionID=<INSERT_SESSION_ID>&ShareGroupID=pbV5hcv2LDCnw
It failed.
I did manage to set 1 as the ShareGroupID and I got a sharegroup that I shouldn't have access to.
I was logged in for sure
the error I got was
<rsp stat="fail">
<err code="16" msg="invalid data (ShareGroupID)"/>
</rsp>
http://api.smugmug.com/services/api/rest/1.2.1/?method=smugmug.sharegroups.getInfo&SessionID=<INSERT_SESSION_ID>&ShareGroupID=pbV5hcv2LDCnw
It failed.
I did manage to set 1 as the ShareGroupID and I got a sharegroup that I shouldn't have access to.
I was logged in for sure
the error I got was
<rsp stat="fail">
<err code="16" msg="invalid data (ShareGroupID)"/>
</rsp>
0
Comments
There are two ways to identify a ShareGroup... ShareGroupID or ShareGroupTag. The value you provide for that method was actually the ShareGroupTag.
At the moment, that method doesn't support ShareGroupTag.
Cheers,
David
SmugMug API Developer
My Photos
Ok, how do I get the SharegroupID? I am assuming (but can't check right now) that I call sharegroups.get to get a list of sharegroups?
Is it ok that I was able to look at the info for the sharegroup id '1' which belongs to Don?
yeah, sharegroups.get should return a list of sharegroups for user.
I will look into the other issue.
Cheers,
David
SmugMug API Developer
My Photos
I am going to need to update smugmug.sharegroups.getInfo in order to achieve what you want...I believe.
SmugMug API Developer
My Photos
Ideally albums.get would take a filter for a sharegroup. This should be in addition to sharegroups.getinfo returning a list of galleries for a specific sharegroup.
Ideally
it already does this...
SmugMug API Developer
My Photos