Beispiel #1
0
                        $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 
                            echo $title . ": " . $company;
                            ?>
</span></div>
                  <?php 
                            if ($count == 1) {
                                $response = $OBJ_linkedin->job((string) $jid, $field_selectors);
                                if ($response['success'] === TRUE) {
                                    echo "<h2>API Result:</h2><pre>" . print_r(new SimpleXMLElement($response['linkedin']), TRUE) . "</pre>";
                                } else {
                                    // profile retrieval failed
                                    echo "Error retrieving jobs detailed information:<br /><br />RESPONSE:<br /><br /><pre>" . print_r($response, true) . "</pre>";
                                }
                            }
                            ?>
                  <div style="margin: 0.5em 0 1em 2em;">
                    <a href="<?php 
                            echo $_SERVER['PHP_SELF'];
                            ?>
?<?php 
                            echo LINKEDIN::_GET_TYPE;
                            ?>