Mike:

I really appreciate you finding this. I'm going to check it out.

Rich


On 5/30/2018 13:36, Mike Carroll wrote:
 It looks like using the new v1 backward API link is the simplest change.

  * Externals: add to [station] section in the RLM config file:
      o ApiVersion - how RLM talks to Spinitron for this station
          + 0 or omitted = old API call with user and password phrases
          + 1 = new v1 backward-API call with API key value
      o ApiKey - Spinitron-assigned station API key for ApiVersion=1
  * In the program:
      o If ApiVersion = 1:
          + Format curl message with no user or password phrase; all
            else is the same
          + Invoke curl with -H 'Authorization: Bearer
            STATION_API_KEY' phrase w/the station's API key and the v1
            API web address
      o Otherwise
          + No change to curl message (has user/password phrases)
          + No change to curl invocation

The v1 backwards-compatible API is documented here: https://gist.github.com/spinitron/fec82a90f1ae97440bbe2cca011c9e2d


On Sat, May 26, 2018 at 12:11 PM Rich Stivers <[email protected] <mailto:[email protected]>> wrote:

    Mike:

    Thanks for the reply. I don't know what the timetable is for
    Spinitron to completely transition to V2, but at some point
    Spinitron may request your station to use V2 like they did my station.

    Rich


    On 5/25/2018 17:15, Mike Carroll wrote:
    We use the Spinitron v1 API and the current Rivendell RLM.

    On Fri, May 25, 2018 at 1:47 PM Rich Stivers
    <[email protected] <mailto:[email protected]>> wrote:

        Is there anyone that uses the current RLM to populate
        Spinitron playlists? Our site would like to use that,
        however we are using Spinitron Version 2. The current RLM
        does not work with Spinitron V2.

        Tom Worster from Spinitron has submitted a feature request at
        Github.
        https://github.com/ElvishArtisan/rivendell/issues/211


        Fred:    Can the new RLM for Spinitron V2 be implemented in
        the next Rivendell release?


        Rich Stivers
        KKUP-FM 91.5
        Cupertino/San Jose CA

        _______________________________________________
        Rivendell-dev mailing list
        [email protected]
        <mailto:[email protected]>
        http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


    _______________________________________________
    Rivendell-dev mailing list
    [email protected]
    <mailto:[email protected]>
    http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to