This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SpotifyConnection | |
BASE_URI = 'https://api.spotify.com/v1'.freeze | |
def initialize(user) | |
@user = user | |
end | |
def user_information | |
connection('https://api.spotify.com/v1/me') | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'we_transfer_client' | |
# gem install wetransfer | |
# run: ruby wetransfer_uploader.rb /path/to/the/file/you/want/to/share.wav /and/another/file/you/want/to/share.wav | |
WT_API_KEY='' | |
client = WeTransfer::Client.new(api_key: WT_API_KEY) | |
transfer = client.create_board_and_upload_items(name: "WeTransfer CLI Uploader", description: "") do |upload| | |
ARGV.each do |file| | |
upload.add_file_at(path: file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
require 'we_transfer_client' | |
require 'simple-rss' | |
require 'active_support/core_ext/numeric/time' | |
### To be able to run this script you need the install these gems | |
### gem install open-uri | |
### gem install wetransfer | |
### gem install simple-rss | |
### and default if you use rails you should have active_support, otherwise install it manually |