Skip to content

Student Attribute

PrasadChinwal edited this page Nov 1, 2024 · 2 revisions

Request

use Uisits\AitsApi\Request\AitsStudentAttribute;
AitsStudentAttribute::get(uin: 'xxxxxxxxx', term: 'xxxxxx');

Response

Uisits\AitsApi\Response\StudentAttribute\StudentAttribute {#589 ▼ // routes/web.php:52
  #_additional: []
  #_dataContext: null
  +queryUIN: "650547906"
  +queryCampusCode: "400"
  +queryTermCode: "420248"
  +person: 
Uisits\AitsApi\Response\Person
\
Person {#498 ▼
    #_additional: []
    #_dataContext: null
    +guid: "11202993"
    +pidm: "4916030"
    +uin: "650547906"
    +name: null
    +netIds: null
    +address: null
    +phone: null
    +title: null
    +employee: null
  }
  +attribute: 
Illuminate\Support
\
Collection {#568 ▼
    #items: array:3 [▼
      0 => 
Uisits\AitsApi\Response\StudentAttribute
\
Attribute {#695 ▼
        #_additional: []
        #_dataContext: null
        +guid: "7513066"
        +pidm: "4916030"
        +termCode: 
Uisits\AitsApi\Response
\
ValidPartTerm {#651 ▼
          #_additional: []
          #_dataContext: null
          +code: "420248"
          +description: "Fall 2024 - Springfield"
        }
        +attribute: 
Uisits\AitsApi\Response\StudentAttribute
\
AttributeDetail {#698 ▼
          #_additional: []
          #_dataContext: null
          +code: "4002"
          +description: "First Generation Applicant"
        }
        +activityDate: "2024-05-16"
      }
      1 => 
Uisits\AitsApi\Response\StudentAttribute
\
Attribute {#585 ▶}
      2 => 
Uisits\AitsApi\Response\StudentAttribute
\
Attribute {#588 ▶}
    ]
    #escapeWhenCastingToString: false
  }
}

Quick Trick

  • How to pluck all attributes for the student
use Uisits\AitsApi\Request\AitsStudentAttribute;
$response = AitsStudentAttribute::get("650547906", "420248");
$response->attribute->pluck("attribute.description", "attribute.code"); // Gives you array of student attributes with code as key.

Clone this wiki locally