How to get Skype call start and end timings programatically?

test code 1 Reputation point
2024-05-09T12:28:14.9466667+00:00

I am trying to get Skype call start and end timings programatically from other vb.net application.

Tried Skype4Com.Dll, It is not working for latest version of Skype.

Skype Version : 8.116.0.213

As per this resource :- https://answers.microsoft.com/en-us/skype/forum/all/skype4com-in-vba/cfd800b8-d518-404b-959d-7414060da946 , Skype4Com.dll is disabled now

Is the any other way I can get Skype call start and end timings programatically?

Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
607 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SK Roy 0 Reputation points
    2024-05-13T09:34:13.57+00:00

    To programmatically retrieve the start and end times of Skype calls, you can use the Skype for Business API or the Microsoft Graph API, depending on whether you're working with Skype for Business or Skype's consumer version. Here’s a general approach for both:

    For Skype for Business

    Use Skype for Business API: This API allows you to interact with Skype for Business Online. You can retrieve call records by accessing the conversation history of a user.

    Authentication: First, you'll need to authenticate using OAuth with the credentials of a user or an admin.

    Fetch Conversation History: Make API calls to get the conversation history, which includes call start and end times. You can use endpoints like /communication/conversations to fetch this data.

    Extract Time Data: From the conversation details, extract the start and end times of each call.

    For Skype Consumer Version

    Microsoft Graph API: Since direct Skype APIs for consumer versions do not offer detailed call data, you might consider using Microsoft Graph API if the accounts are linked with Microsoft 365.

    Authentication: Authenticate using OAuth 2.0. You'll need appropriate permissions to access user data.

    1. Call Records: Use the /communications/callRecords endpoint to fetch call records. Note that this primarily applies to Microsoft Teams and might have limited functionality for Skype consumer calls.
    2. Parsing Data: After retrieving the call records, parse the JSON response to extract the necessary timing data.
    0 comments No comments