Added cURL options to avoid SSL errors and also fix to variable name $self was used instead of $this which caused and error