Fetch meeting recording

I was used JWT previously to fetch meeting recording.
And recently i migrated my app from jwt to outh. All working good.
I am facing problem while fething meeting recording.
So following is my old PHP code

public function meeting_recording(){
header(“Content-Type: application/json; charset=UTF-8”);
$params = json_decode(file_get_contents(‘php://input’), TRUE);
$meeting_id = $params[‘meeting_id’];
$request_url = “https://api.zoom.us/v2/meetings/“.$meeting_id.”/recordings”;
$token = array(
“iss” => API_KEY,
“exp” => time() + 3600
);
$getJWTKey = JWT::encode($token, API_SECRET);
$headers = array(
"authorization: Bearer " . $getJWTKey,
“content-type: application/json”,
“Accept: application/json”,
);

    $ch = curl_init();
    curl_setopt_array($ch, array(
        CURLOPT_URL => $request_url,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => "",
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 30,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => "GET",
        CURLOPT_HTTPHEADER => $headers,
    ));

    $result = curl_exec($ch);
    $err = curl_error($ch);
    curl_close($ch);
    if (!$result)
    {
        return $err;
    }
    // echo $result;
     $result = json_decode($result);
    foreach($result->recording_files as $key=>$value){
        $result->recording_files[$key]->password = $result->password;
        $result->recording_files[$key]->title = $result->topic;
    }
    
    if($result)
    {
        // $result->meeting_details= $this->db->get_where('live_class',array('meeting_id'=>$params['meeting_id']))->row();
        $data["response"] = true;
        $data["data"] = $result;
        
    }else{
        $data["response"] = false;
	    $data["message"] = 'Data Not Available';
    }
     echo json_encode($data);
}

One more thing, i used this api for attendee(student) side.
So can you please suggest what should i do for fetching recording from oauth app

Hi @trechtoapp
Thanks for reaching out to us!
Are you still having this issue? If so, could you please explain what the issue is?

Look @elisa.zoom
I successfully integrated Oauth in my app
creating meetings and recording meetings are working fine.
but in my app, I give access of recording to my student using above API with jwt token.
I fetched the recording and displayed it on the students’ side.
But here in the Oauth app type How can i do?

is it possible?, if student grant app using there own zoom account and creates token and fetch meetings from my account?
if yes then i will proceed accordingly. If no then please guide me.
Thank You.

Hi @trechtoapp
Thanks for the clarification
Unfortunately, this is not possible using an OAuth app type.
If your student authorizes the app using their own zoom account and creates an access token, they will only be able to fetch meetings and recordings from their own account.
The access token is associated with the owner of the account.

So if i want to show meeting recordings to the student side then what will be the solution?
How can i fetch recordings using api and show it on student side?

Students won’t be able to see your recordings unless you download them and share the recordings with them.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.