This file contains 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
#!/bin/sh | |
# | |
# A simple command line utility to send an image to VMX For this | |
# example to work, make sure the VMX variable points to the location | |
# of your server. | |
# | |
# Tom Malisiewicz [email protected] | |
# vision.ai 2015 | |
#The location of the VMX server |
This file contains 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 'yaml' | |
require 'httparty' | |
settings = YAML::load_file(File.dirname(File.expand_path(__FILE__)) + '/namecheap.yml') | |
username = settings['namecheap']['user'] | |
api_key = settings['namecheap']['api_key'] | |
request_string = "https://api.namecheap.com/xml.response" |