Ejemplo n.º 1
0
                } else {
                    // people search retrieval failed
                    echo "Error retrieving followed companies:<br /><br />RESPONSE:<br /><br /><pre>" . print_r($response) . "</pre>";
                }
                ?>
            
            <hr />
            
            <h3 id="jobsSuggested">Suggested Jobs:</h3>

            <p>Jobs that LinkedIn thinks you might be interested in:</p>
            
            <?php 
                $field_selectors = ':(id,customer-job-code,active,posting-date,expiration-date,posting-timestamp,company:(id,name),position:(title,location,job-functions,industries,job-type,experience-level),skills-and-experience,description-snippet,description,salary,job-poster:(id,first-name,last-name,headline),referral-bonus,site-job-url,location-description)';
                $OBJ_linkedin->setResponseFormat(LINKEDIN::_RESPONSE_XML);
                $response = $OBJ_linkedin->suggestedJobs(":(jobs:(id,company,position:(title)))");
                if ($response['success'] === TRUE) {
                    $suggested = new SimpleXMLElement($response['linkedin']);
                    $jobs = $suggested->jobs;
                    if ((int) $jobs['total'] > 0) {
                        $job = $jobs->job;
                        $count = 1;
                        foreach ($job as $job) {
                            $jid = $job->id;
                            $title = (string) $job->position->title;
                            $company = $job->company->name;
                            $poster = $job->{'job-poster'};
                            $description = $job->{'description-snippet'};
                            $location = $job->{'location-description'};
                            ?>
                  <div style=""><span style="font-weight: bold;"><?php