Plugin Directory

Changeset 2459620


Ignore:
Timestamp:
01/20/2021 11:58:39 AM (5 years ago)
Author:
vinema
Message:

vy_user -> user

Location:
vine-ma/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vine-ma/trunk/readme.txt

    r2436326 r2459620  
    2121
    2222== Changelog ==
     23
     24= 1.1.2 =
     25* Bugfixing
    2326
    2427= 1.1.1 =
  • vine-ma/trunk/vine_ma_plugin.php

    r2436326 r2459620  
    131131//get user organization id
    132132function vine_ma_get_organizationid_username($token) {
    133     $url=VINEHOST."/api/rest/2.0/vy_user?\$authtoken={$token}";
     133    $url=VINEHOST."/api/rest/2.0/user?\$authtoken={$token}";
    134134    $args = array(
    135135      'timeout' => 20,
     
    145145        foreach($xml->xpath('//m:properties') as $event) {
    146146          $orgid = (string)$event->xpath('d:ORGANIZATIONID')[0];
    147           $username = (string)$event->xpath('d:NAME')[0];
     147          $firstname = (string)$event->xpath('d:FIRSTNAME')[0];
     148          $lastname = (string)$event->xpath('d:LASTNAME')[0];
     149          $email = (string)$event->xpath('d:EMAIL')[0];
     150          $username = $firstname . ' ' . $lastname . ' (' . $email . ')';
    148151        }
    149152        return array(
Note: See TracChangeset for help on using the changeset viewer.