如何运行简单的 Spotify 应用程序

发布于 2024-12-28 09:32:19 字数 406 浏览 3 评论 0原文

我想使用 Spotify API 开发一个应用程序。我已经下载了适用于 Windows 的 Spotify 库,并在环境变量中设置了 spotify.dll 的路径。我正在尝试运行 Spotify 开发人员网站上提供的简单“hello word”示例,但我在使用 Spotify 功能时遇到错误

getSpotifyApi(1);

我不知道这个功能具体是做什么的。

是否需要将API_key放在代码文件中?我目前 Spotify 库中没有 appkey.c 文件。运行简单应用程序是否需要 API_keyappkey.c 文件?运行简单示例是否有其他要求?

I want to develop an app with the Spotify API. I have downloaded the Spotify library for Windows and also set path in environmental variables for spotify.dll. I am trying to run the simple "hello word" example available on the Spotify developers site but I am getting an error with the Spotify function

getSpotifyApi(1);

I don't know what exactly this function does.

Is it required to put API_key in code file? I don't have the appkey.c file in Spotify library right now. Are API_key and the appkey.c file required for running simple applications? Are there additional requirements for running simple examples?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

是伱的 2025-01-04 09:32:19

您的代码和您的问题在 Apps API 和 LibSpotify 之间混淆。

如果您想在 Spotify 内创建应用程序,请转到此处获取示例和资源:http: //developer.spotify.com/en/spotify-apps-api/overview/

如果您想制作自己的包含 Spotify 功能的应用程序,请转到此处:http://developer.spotify.com/en/libspotify/overview/

Your code and your question is confused between the Apps API and LibSpotify.

If you want to make applications INSIDE Spotify, go here for examples and resources: http://developer.spotify.com/en/spotify-apps-api/overview/

If you want to make your own applications that contain Spotify functionality, go here: http://developer.spotify.com/en/libspotify/overview/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文