Options

sharegroups.getinfo not working

GarethLewinGarethLewin 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>

Comments

  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 23, 2008
    Gareth,

    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
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    GarethLewinGarethLewin Registered Users Posts: 95 Big grins
    edited January 23, 2008
    devbobo wrote:
    Gareth,

    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

    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?
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 23, 2008
    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
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 23, 2008
    Having read what you are tying to do in your SmugSaver thread.

    I am going to need to update smugmug.sharegroups.getInfo in order to achieve what you want...I believe.
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    GarethLewinGarethLewin Registered Users Posts: 95 Big grins
    edited January 23, 2008
    devbobo wrote:
    Having read what you are tying to do in your SmugSaver thread.

    I am going to need to update smugmug.sharegroups.getInfo in order to achieve what you want...I believe.

    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 :)
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 23, 2008
    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... :D
    Updated Methods...
    smugmug.albums.get
    smugmug.users.getTree

    now accepts a ShareGroup parameter, which can be a single or an array of share group tags, which will expose any private albums for a given sharegroup when you call this method on another user's account.
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.