cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

[CAL-4047] Retrieve private URL or hashedLink through event-types API(s)

Open jfkisafk opened this issue 1 year ago β€’ 11 comments

Is your proposal related to a problem?

Yes, this is a blocking issue to copy private urls from Raycast:

  • related https://github.com/raycast/extensions/issues/13215
  • related https://github.com/calcom/cal.com/issues/5106

Describe the solution you'd like

We'd like a way to retrieve the hashedLink for the private URL through the APIs, either as:

  • new key-value pair in the GET /event-types or GET /event-types/{id} response
  • replacing the current link value in the response with the private URL in case user has it enabled.
  • ...other alternative like a new API.

Describe alternatives you've considered

No alternatives that I could find in the API reference.


House rules
  • If this issue has a 🚨 needs approval label, don't start coding yet. Wait until a core member approves feature request by removing this label, then you can start coding.
    • For clarity: Non-core member issues automatically get the 🚨 needs approval label.
    • Your feature ideas are invaluable to us! However, they undergo review to ensure alignment with the product's direction.

CAL-4047

jfkisafk avatar Jun 28 '24 21:06 jfkisafk

Is anybody working on this? If not then I would like to take this on

sourabpramanik avatar Jun 29 '24 13:06 sourabpramanik

@sourabpramanik go for it. just link your pr back to this issue when it's ready for review and someone from the team will take a look.

ciaranha avatar Jul 16 '24 10:07 ciaranha

@PeerRich @ciaranha can i work on this issue? Please assign it to me

naman777 avatar Jul 17 '24 18:07 naman777

@PeerRich @ciaranha can i work on this issue? Please assign it to me

Hey @naman777 I am working on this thanks

sourabpramanik avatar Jul 17 '24 18:07 sourabpramanik

@sourabpramanik are u still working on this?

Stain19 avatar Aug 06 '24 04:08 Stain19

I am not having the bandwidth, please go ahead if you want to work on this @Stain19

sourabpramanik avatar Aug 07 '24 05:08 sourabpramanik

@Stain19 are you working this?, If not, I'm interested in working on it.

rkumar261 avatar Aug 13 '24 17:08 rkumar261

@rkumar261 No, not anymore. Go ahead πŸ€™

Stain19 avatar Aug 13 '24 18:08 Stain19

Hi @jfkisafk when you say replacing the current link value in the response with the private URL in case user has it enabled.

do you mean to change the value in the locations object when the type is set to link

{
  "status": "success",
  "data": {
    "eventType": {
      "id": 1,
      "length": 60,
      "slug": "cooking-class",
      "title": "Learn the secrets of masterchief!",
      "description": "Discover the culinary wonders of the Argentina by making the best flan ever!",
      "locations": [
        {
          "type": "link",
          "link": "Add hashed link if private link is enabled"
        }
      ]
    }
  }
}

shafiahmed12 avatar Aug 25 '24 08:08 shafiahmed12

Hey @shafiahmed12 , I just mean changing the link value for the eventType:

{
  "status": "success",
  "data": {
    "eventType": {
      "id": 1,
      "length": 60,
      "slug": "cooking-class",
      "title": "Learn the secrets of masterchief!",
      "link": "...hashed link..."
    }
  }
}

But if it makes more sense to put it in location, then we can alter the call pattern on raycast side. Essentially if the hashed link is exposed somehow through the API, the objective is complete from raycast extension standpoint.

jfkisafk avatar Aug 25 '24 11:08 jfkisafk

Is anyone currently working on this? If not, I would like to take it on.

JOSU9435 avatar Aug 27 '24 08:08 JOSU9435