Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting recording attributes #109

Open
zarulizham opened this issue Jan 19, 2022 · 2 comments
Open

Getting recording attributes #109

zarulizham opened this issue Jan 19, 2022 · 2 comments

Comments

@zarulizham
Copy link

zarulizham commented Jan 19, 2022

Hello,

I'm quite confused to get meeting's recording.

$meeting = $zoomUser->meetings()->where('id', 'MEETING ID HERE')->first();

My question is, how to get recording files?

I tried:

a) $meeting->recording;and result:

MacsiDigital\Zoom\MeetingRecording^ {#3030
  +client: MacsiDigital\Zoom\Support\Entry^ {#24
    #modelNamespace: "\MacsiDigital\Zoom\"
    #perPageField: "page_size"
    #pageField: "page_number"
    #raw: false
    #throwExceptionsIfRaw: false
    #pagination: true
    #defaultPaginationRecords: "30"
    #maxPaginationRecords: "300"
    #minPaginationRecords: "1"
    #maxQueries: "5"
    #resultsPageField: "page_number"
    #resultsTotalPagesField: "page_count"
    #resultsPageSizeField: "page_size"
    #resultsTotalRecordsField: "total_records"
    #allowedOperands: array:1 [
      0 => "="
    ]
    #defaultOperand: "="
    #apiKey: "XXX"
    #apiSecret: "YYY"
    #tokenLife: 29030400
    #baseUrl: "https://api.zoom.us/v2/"
  }
  #updateOnlyDirty: true
  #attributes: array:1 [
    "meeting_id" => 123123123
  ]
  #original: []
  #changes: []
  #casts: []
  #classCastCache: []
  #attributeCastCache: []
  #dates: []
  #dateFormat: "Y-m-d\TH:i:sP"
  #appends: []
  #IdSuffix: "_id"
  #relations: []
  #results: []
  #dontAutoloadRelation: []
  #loadRaw: false
  #hidden: []
  #visible: []
  +exists: false
  +wasRecentlyCreated: false
  #allowedMethods: array:2 [
    0 => "get"
    1 => "delete"
  ]
  #endPoint: "user"
  #customEndPoints: array:2 [
    "get" => "meetings/{meeting:id}/recordings"
    "delete" => "meetings/{meeting:id}/recordings"
  ]
  #createMethod: "post"
  #updateMethod: "patch"
  #insertResource: null
  #updateResource: null
  #primaryKey: "id"
  #apiDataField: ""
  #apiMultipleDataField: "data"
  #wrapInOnInsert: ""
  #wrapInEmptyArrayOnInsert: false
  #wrapInOnUpdate: ""
  #wrapInEmptyArrayOnUpdate: false
  +passOnKeys: []
}

b) $meeting->recording->get();, the result:

#responses: array:1 [
    0 => Illuminate\Http\Client\Response^ {#3310
      #response: GuzzleHttp\Psr7\Response^ {#3290}
      #decoded: array:15 [
        "uuid" => "76ZgLdM7Te66R5Hg7tQ5+g=="
        "id" => 85875911187
        "account_id" => "ASD"
        "host_id" => "QWE"
        "topic" => "KEL"
        "type" => 2
        "start_time" => "2022-01-18T11:59:53Z"
        "timezone" => "Asia/Kuala_Lumpur"
        "host_email" => "samad@gmail.com"
        "duration" => 122
        "total_size" => 1024540486
        "recording_count" => 2
        "share_url" => "https://us02web.zoom.us/rec/share/niO-bNjwpbbBpKpefb_P0ns_ibOeOUFz"
        "recording_files" => array:2 [
          0 => array:11 [
            "id" => "89f887c1-91db-49726"
            "meeting_id" => "76ZgLdM7Te6+g=="
            "recording_start" => "2022-01-18T11:59:55Z"
            "recording_end" => "2022-01-18T14:02:18Z"
            "file_type" => "MP4"
            "file_extension" => "MP4"
            "file_size" => 907691310
            "play_url" => "https://us02web.zoom.us/rec/play/crE6gWi4I17IeLDDt-agQQb3BpWOmh9bLX8bl1JQRp0i.V5VHDTx3m1vIRrPB"
            "download_url" => "https://us02web.zoom.us/rec/download/crE6gWi4I17IeLDDt-agQQb3BpWOmh9bLX8bl1JQRp0Kv7ACYyI5VHDTx3m1vIRrPB"
            "status" => "completed"
            "recording_type" => "shared_screen_with_speaker_view"
          ]
          1 => array:11 [
            "id" => "99f2085c-6c62-4951-94f6-903b867bcd3f"
            "meeting_id" => "76ZgLdM7Te66R5Hg7tQ5+g=="
            "recording_start" => "2022-01-18T11:59:55Z"
            "recording_end" => "2022-01-18T14:02:18Z"
            "file_type" => "M4A"
            "file_extension" => "M4A"
            "file_size" => 116849176
            "play_url" => "https://us02web.zoom.us/rec/play/MdxG2jVYNz-yy"
            "download_url" => "https://us02web.zoom.us/rec/download/MdxG2jRAV"
            "status" => "completed"
            "recording_type" => "audio_only"
          ]
        ]
        "password" => "AABBCCDD"
      ]
      +"cookies": GuzzleHttp\Cookie\CookieJar^ {#3357}
      +"transferStats": GuzzleHttp\TransferStats^ {#3289}
    }
  ]
  #resource: MacsiDigital\Zoom\MeetingRecording^ {#3030}
@josuelmm
Copy link

Some answer?

@chondal
Copy link

chondal commented Jul 13, 2022

I am in the same situation, I cannot access the recordings, because those keys give me an error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants