Yahoo and gmail API


  • Default avatar
    sinaskandary    
     2 years ago
    0

    Hi,
    Importing contacts from yahoomail and gmail doesn't work in aworewards. I have generated application ID and wrote consumer key and secret code in the configuration. But it doesn't work.
  • Your avatar
    seyi    
     2 years ago
    0

    Hello,

    Are you accessing the contacts over https? If not you will neeed to. Here are what google and yahoo say about it.

    Yahoo
    Reference url: https://developer.yahoo.com/social/contacts/

    Quote:
    To safeguard user data and authenticate API calls, we are limiting all access to the Yahoo Contacts API to secure SSL connections only. No user data will be accessible over HTTP from this date onwards. Thus, your applications must use SSL connections when making requests to https://social.yahooapis.com or https://query.yahooapis.com to access Yahoo contacts/profile data. 


    Google
    Reference url:
    https://developers.google.com/google-apps/contacts/v3/

    Quote:
    Important: As of March 31, 2014, in order to increase security, the Contacts API began redirecting HTTP GET requests to HTTPS, and rejecting POST, PUT, and DELETE requests made with HTTP. If your application uses the HTTP protocol, please switch to HTTPS.
  • Default avatar
    sinaskandary    
     2 years ago
    0

    You mean I should buy ssl for my website in order to use these featurs? If so, how can I disable them in order to not being shown till I manage to have my website in https?
  • Your avatar
    seyi    
     2 years ago
    0

    Hello,

    Yes, google and yahoo are requiring ssl. You can disale it by going to admin->aworewards->configurations->external api and setting 'enable' to 'no'.
  • Default avatar
    sinaskandary    
     2 years ago
    0

    I have enabled https but it still doesn't work.
  • Your avatar
    seyi    
     2 years ago
    0

    Ok, thanks, took a look and yes there are some problems using google and yahoo apis. I have made updates to fix this, so please get the latest version, 2.0.9.
  • Default avatar
    sinaskandary    
     2 years ago
    0

    what is the redirect url for google API?
    I recieve this error from google:

    Error: redirect_uri_mismatch
  • Your avatar
    seyi    
     2 years ago
    0

    Hello,

    Use the url:

    https://[your_site_url]/index.php?option=com_aworewards&view=invitation&task=invite_socialmail_confirm_oauth2&getter=google