]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/YammerImport/actions/yammerauth.php
WORK IN PROGRESS: Starting infrastructure to initiate Yammer import from web UI and...
[quix0rs-gnu-social.git] / plugins / YammerImport / actions / yammerauth.php
1 <?php
2
3
4 function showYammerAuth()
5 {
6     $token = $yam->requestToken();
7     $url = $yam->authorizeUrl($token);
8
9     // We're going to try doing this in an iframe; if that's not happy
10     // we can redirect but there doesn't seem to be a way to get Yammer's
11     // oauth to call us back instead of the manual copy. :(
12
13     //common_redirect($url, 303);
14     $this->element('iframe', array('id' => 'yammer-oauth',
15                                    'src' => $url));
16 }
17