<?php
class PodioReference extends PodioObject {
  public function __construct($attributes = array()) {
    $this->property('type', 'string');
    $this->property('id', 'integer');
    $this->property('title', 'string');
    $this->property('link', 'string');
    $this->property('data', 'hash');
    $this->property('created_on', 'datetime');

    $this->has_one('created_by', 'ByLine');
    $this->has_one('created_via', 'Via');

    $this->init($attributes);
  }

  /**
   * @see https://developers.podio.com/doc/reference/get-reference-10661022
   */
  public static function get_for($ref_type, $ref_id, $attributes = array()) {
    return self::member(Podio::get("/reference/{$ref_type}/{$ref_id}", $attributes));
  }

  /**
   * @see https://developers.podio.com/doc/reference/search-references-13312595
   */
  public static function search($attributes = array()) {
    return Podio::post("/reference/search", $attributes)->json_body();
  }

}

<?php
class PodioReference extends PodioObject {
  public function __construct($attributes = array()) {
    $this->property('type', 'string');
    $this->property('id', 'integer');
    $this->property('title', 'string');
    $this->property('link', 'string');
    $this->property('data', 'hash');
    $this->property('created_on', 'datetime');

    $this->has_one('created_by', 'ByLine');
    $this->has_one('created_via', 'Via');

    $this->init($attributes);
  }

  /**
   * @see https://developers.podio.com/doc/reference/get-reference-10661022
   */
  public static function get_for($ref_type, $ref_id, $attributes = array()) {
    return self::member(Podio::get("/reference/{$ref_type}/{$ref_id}", $attributes));
  }

  /**
   * @see https://developers.podio.com/doc/reference/search-references-13312595
   */
  public static function search($attributes = array()) {
    return Podio::post("/reference/search", $attributes)->json_body();
  }

  /**
   * @see https://developers.podio.com/doc/reference/resolve-url-66839423
   */
  public static function resolve($attributes = array()) {
    return self::member(Podio::get("/reference/resolve", $attributes));
  }

}

Add resolve operation to references
Add resolve operation to references
