add core php, simplified sms ,corrected urls

made core php which can be used by other api classes as well