Skip to content
Advertisement

Share Plex library in Dart

Hi I’m figuring out how to share Plex library in dart. I’m helping myself with this working script in python ( it works)

JavaScript

unfortunately my code returns an http error 400, bad request

note: When I run the dart code there are no shared library.

maybe the payload is not correct :| Thank for any help

JavaScript

}

JavaScript

}

Advertisement

Answer

The old code has a few bug and don’t encode perfectly the data I solved with ‘dio’ package and this link helped me a lot https://reqbin.com/

If the user has no shared library this code add a new one

JavaScript

}

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement