Initial API call structure
Added promise library