MusicPimp
Code Samples
Initializing search
    • Develop
    • Http Endpoints
    • Server Events
    • Code Samples

    Code Samples

    As an example, let's use the API to ping a locally installed MusicPimp server and validate our credentials. We make a request and expect to get an HTTP response with status code 200 OK.

    Here's how it can be done in Scala, using either Apache HttpClient or the Web Services library in Play Framework:

    Here's the same in C#, using either Microsoft HTTP Client Libraries (HttpClient) or RestSharp:

    Previous Server Events
    Copyright © 2019 Michael Skogberg
    Made with Material for MkDocs