Posted 15 July 2014 - 08:12 AM
                I want to make an API (not air pollution index, application programming interface).
How?
                
            How?
 
        
--# these will not be accessible outside your API, only internally will they be accessible
local stuff = "Did stuff!"
local function doStuff()
  print( stuff )
end
--# these will be accessible to any program after your API has been loaded with os.loadAPI
starter = "Hello World!"
function foo()
  print( starter )
end
os.loadAPI( "things" )
things.foo()
print( "Starter is: ", things.starter )
local name = "api"
function api(str)
print("The API called "..name.."is printing "..str.." out.")
end
os.loadAPI("/APIs/api")
api.api("hello")