I'm trying to develop apps for Spotify using their API. I started using this guide of theirs but got stuck quickly when it said to put my files in "My Documents/Spotify". Vista uses the folder Documents instead of My Documents (and if you try to create My Documents inside your user folder, it merges the contents into Documents), so I'm having trouble getting Spotify to find my apps.
I created folder "hurrdurrdurr" inside C:\Users\myusername\Documents\Spotify\, and put the HTML and JSON files described here inside of C:\Users\myusername\Documents\Spotify\hurrdurrdurr\, but "spotify:app:hurrdurrdurr" gave me a "metadataFailed" message with "Error:appNotFound". Any ideas where I should be putting my app files?
And yes, all of the following things have happened:
I have made my account a developer account
The "Develop" tab has appeared in Spotify
I have tried restarting Spotify after putting the app in the directory
Also, I'm using Spotify version 0.8.3.222.{build ID that I'm too lazy to copy}. I can't find a download link for any preview build, but this is the latest version as far as I can tell. Anyone
The directory should be correct, in my case it is C:\Users\buchetics\Documents\Spotify. Something is probably wrong with your app. Check out the example/tutorial here:
https://github.com/mager/spotify-apps-tutorial
I just cloned the repository and it works with the same Spotify version you are using.
After having a similar problem with getting the Spotify tutorial to load into Spotify on my Windows machine, I figured out what the issue was-- it's very simple. I'm not going to claim this will resolve every issue but a lot of people who are using Windows based machines seem to be running into this issue.
1.Once you download the Spotify tutorial from github, extract it to the folder you've created-- as stated on the github site the folder should be "Spotify".
You can place the "Spotify" folder where ever you please as long as it's on the C: drive (Desktop, My Documents, etc).
Open the "Spotify" folder; then open the "apps-tutorial-master" folder-- within this folder is a folder with a similar name "apps-tutorial-master", cut all the files from within this folder and move them up to the parent of this folder and paste them.
"Spotify"->"apps-tutorial-master"->"apps-tutorial-master"->"THE FILES WE NEED TO MOVE UP ONE DIRECTORY";
The new directory structure should look like:
"Spotfy"->"apps-tutorial-master"->"THE FILES WE MOVED UP ONE DIRECTORY;
Once you've cut and paste the files up one directory you should then be able to get Spotify to load the tutorials. The redundancy in the folder structure comes from the extraction/unzipping by the windows utility.
I hope this helps those who are using a Windows machine.
Related
I would also like to pull from Dropbox, Box, and iCloud Drive. If there is no way, I will try to work around it but I was just wondering. I would like to be able to see the whole drive (all files and folders accessible). Thanks.
Depending on what you exactly are looking to do, you can use Google Drive's API to create/open files on your Drive for a serious project. If you are just experimenting with an idea, you can host your site directly from Google Drive.
To display all the files including folders, use Files.list. If you want to specify which type of file you want to show, check Search Files.
To know more about working with folders and filepaths check Work with Folders
I'm having trouble allowing files (non-shared) to be downloaded from a Google Drive account. I've created a listing using the php drive sdk and would like to provide authorised links to download the files using a generated access token. I've got downloads working with links like this:
https://www.googleapis.com/drive/v3/files/[fileid]?alt=media&access_token=[access_token]
The problem is that whenever a file is downloaded, it is named [fileid].[extension], rather than the real file name that appears in Drive.
I've tried adding the download="[real filename]" into the a link to suggest the correct filename, but it's being ignored in all the browsers I've tried.
I've got an alternative working that gets the file piece by piece server side and echoes it out as a file via php, but I'd prefer for downloads to be straight from Drive to the user.
Although I have analytics account, signed in with chrome when attempting to download etc. the famous link to download the generated file is broken.
So - How can I configure it by myself? This should be proper simple code task...:
Create new .json file in your project and what to put inside? Google's documentation assumes the link always works and I'm struggling to find instructions on how to code this file by myself.
Thanks,
I am working on a Chrome App where I need the users to open files in a directory. For his own files, I can offer them a dialog through
chrome.fileSystem.chooseEntry
which works well. However that seems to limit me to the "Downloads" directory and Google Drive on my Chromebook. I would also like to ship some files with the application itself, so the files/folders would be located inside the app package. Is it possible to access these files through the fileSystem API?
I would not need the user to choose the files from a dialogue, it would be enough if I could get a handle to these files and offer to display them on the click of a button through my app.
Thanks in advance
You can read included files using chrome.runtime.getPackageDirectoryEntry(function(directoryEntry) {})
I am trying to create a portfolio disc to sell my photos and to protect my work. I want to put my web site that i created into one exe so that my photos can't be stolen as an extra precaution. I know to use the webBrowser.navigate command with the internet controls but how do I add the web site directory to the exe to make it run in one file? I don't want to install it on the user's computer. Just operate the site's directory from the home page all through 1 exe file. I know its possible to do. I have seen apps like HTMLexe that will convert them for you but the free apps i have found won't allow the javascript and css files to run. Some won't even do it without buying the full premimum version of the software. How can I code this myself?