From e4761b613f6c45e6408d5f1964a51b3d75c52363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20S=C3=A4rnesj=C3=B6?= Date: Wed, 15 Apr 2009 18:55:22 +0200 Subject: [PATCH] Added a section about application keys to the README. --- README.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.markdown b/README.markdown index 49f87b7..4b729a3 100644 --- a/README.markdown +++ b/README.markdown @@ -57,6 +57,14 @@ become `loaded?` methods. There are a few exceptions to these rules, however. For details, refer to the API docs. +### Application keys + +The `Session#new` method expects as its first argument your libspotify +application key as a binary string. An easy way of creating this string, is +using `Array#pack`, like this: + + APPLICATION_KEY = [0x00, ..., 0x00].pack('C*') + ## Copyright Copyright (c) 2009 Jesper Särnesjö. See LICENSE for details.