Skip to content

Instantly share code, notes, and snippets.

View dscottS3's full-sized avatar

Dwight Scott dscottS3

View GitHub Profile
@dscottS3
dscottS3 / basic-api-docs.md
Last active February 2, 2017 19:21
TicketFire General API Docs
require 'net/ftp'
CONTENT_SERVER_DOMAIN_NAME = "one-of-the-ftp-server.thought-sauce.com.hk"
CONTENT_SERVER_FTP_LOGIN = "saucy-ftp-server-login"
CONTENT_SERVER_FTP_PASSWORD = "saucy-ftp-server-password"
# LOGIN and LIST available files at default home directory
Net::FTP.open(CONTENT_SERVER_DOMAIN_NAME, CONTENT_SERVER_FTP_LOGIN, CONTENT_SERVER_FTP_PASSWORD) do |ftp|
files = ftp.list