Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing a playlist via API produces unexpected behavior #129

Open
pixelrebel opened this issue Dec 2, 2016 · 0 comments
Open

Sharing a playlist via API produces unexpected behavior #129

pixelrebel opened this issue Dec 2, 2016 · 0 comments

Comments

@pixelrebel
Copy link

When I share a playlist (example below) via shotugun API, associated note submissions hang on submitting...

def sharePlaylist(sg, playlistID, clientID):
    filters = [ ['playlist', 'is', {'type': 'Playlist', 'id': playlistID}] ]
    fields  = ['playlist', 'user']
    share = sg.find_one('PlaylistShare', filters, fields)
    if not share:
        data = {'playlist': {'type': 'Playlist', 'id': playlistID}, 'user': {'id': clientID, 'type': 'ClientUser'}}
        fields  = ['playlist', 'user']
        return sg.create('PlaylistShare', data, fields)
    else:
        return share

@pboucher explained this is not supported in the API. Can we get support for this? Perhaps I'm simply missing something in my code above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant