apicall function added

Uses Curl and Json to return an array of the values