Access handle value using element API I'm using the Element API and would like to return content based on it's handle. The two handles I am trying to return are called appLogo and appVideo:

'api/featured-apps.json' =&gt; [
  'elementType' =&gt; 'Entry',
  'criteria' =&gt; [
    'section' =&gt; 'apps',
    'appFeatured' =&gt; '1',
  ],
  'transformer' =&gt; function (EntryModel $entry) {
    return [
      'title' =&gt; $entry-&gt;title,
      'logo' =&gt; $entry-&gt;appLogo,
      'video' =&gt; $entry-&gt;appVideo,
    ];
  }
],


This does not work, do I need to access images/videos in a different way? Ideally, I'd like the relative path returned for both logo and video.
I ended up doing it like this:

'api/featured-apps.json' =&gt; [
  'elementType' =&gt; 'Entry',
  'criteria' =&gt; [
    'section' =&gt; 'apps',
    'appFeatured' =&gt; '1',
  ],
  'transformer' =&gt; function (EntryModel $entry) { 
    $logos = [];
    foreach ($entry-&gt;appLogo as $image) {
      $logos[] = $image-&gt;url;
    }

    $videos = [];
    foreach ($entry-&gt;appVideo as $video) {
      $videos[] = $video-&gt;url;
    }

    return [
      'title' =&gt; $entry-&gt;title,
      'logo' =&gt; $logos,
      'video' =&gt; $videos,
    ];
  }
],