Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6883809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:25:45+00:00 2026-05-27T05:25:45+00:00

I am working on a simple email importer script. From what posts on this

  • 0

I am working on a simple email importer script. From what posts on this site have said, the ones that are for sale are either dodgy, or not worth the money spent, and as I know PHP and JS I thought this can’t be hard, after all I have worked with Twitter API, and Facebook API.

However I seem to ran into a little bump in the road.

You see I am using Yahoo’s very own script Yahoo.inc – http://developer.yahoo.com/social/sdk/php/

And all is going well as possible. However when I try to get the contacts I seem not to be able to. Now I have in the API settings for my app, ask for read request for contacts so I know it not that issue.

Here is my code I am using

$contacts = $user->getContacts();

However it seems not work work, it’s like I am missing something. What is the correct way to get emails from the getContacts function Yahoo offers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:25:45+00:00Added an answer on May 27, 2026 at 5:25 am

    instead of the getContacts(), you can use a yql query for that:

    $session = YahooSession::requireSession(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, OAUTH_APP_ID);   
    $query = sprintf("select * from social.contacts where guid=me;");  
    $response = $session->query($query); 
    
    
    /**** printing the contact emails starts ****/
    if(isset($response)){
    
       foreach($response->query->results->contact as $id){
    
           foreach($id->fields as $subid){
    
                   if( $subid->type == 'email' )
                   echo $subid->value."<br />";
           }
       }
    }
    /**** printing the contact emails ends ****/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a simple mobile site that have a registration form for Interest,
I'm working on a simple javascript login for a site, and have come up
I'm working on a simple python based system that sends a verification email to
I'm having an issue with a simple PHP mailer. I've had this script working,
I'm making a really simple email validation script that basically just checks the following
I'm working on a site that will store thousands of records of email addresses
i have developed a simple php contact form, that's working fine, but i am
I am about to write a simple email manager for the site I'm working
I'm looking for good/working/simple to use PHP code for parsing raw email into parts.
I am working on a simple notification service that will be used to deliver

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.