예제 #1
0
                    }
                } else {
                    // people search retrieval failed
                    echo "Error retrieving company information:<br /><br />RESPONSE:<br /><br /><pre>" . print_r($response) . "</pre>";
                }
                ?>
            
            <hr />
            
            <h3 id="companyFollowed">Followed Companies:</h3>

            <p>Companies that you are currently following:</p>
            
            <?php 
                $OBJ_linkedin->setResponseFormat(LINKEDIN::_RESPONSE_XML);
                $response = $OBJ_linkedin->followedCompanies();
                if ($response['success'] === TRUE) {
                    $followed = new SimpleXMLElement($response['linkedin']);
                    if ((int) $followed['total'] > 0) {
                        foreach ($followed->company as $company) {
                            $cid = $company->id;
                            $name = $company->name;
                            ?>
                  <div style=""><span style="font-weight: bold;"><?php 
                            echo $name;
                            ?>
</span></div>
                  <div style="margin: 0.5em 0 1em 2em;">
                    <a href="<?php 
                            echo $_SERVER['PHP_SELF'];
                            ?>