MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / create

Method create

lib/models/contacts.ts:85–102  ·  view source on GitHub ↗
(
    userId: string,
    addressBookId: string,
    contactId: string,
    vCard: string,
  )

Source from the content-addressed store, hash-verified

83 }
84
85 static async create(
86 userId: string,
87 addressBookId: string,
88 contactId: string,
89 vCard: string,
90 ): Promise<void> {
91 const client = await getClient(userId);
92
93 const addressBookUrl = `${contactsConfig.cardDavUrl}/${userId}/${addressBookId}/`;
94
95 await client.createVCard({
96 addressBook: {
97 url: addressBookUrl,
98 },
99 vCardString: vCard,
100 filename: `${contactId}.vcf`,
101 });
102 }
103
104 static async update(
105 userId: string,

Callers

nothing calls this directly

Calls 2

createVCardMethod · 0.80
getClientFunction · 0.70

Tested by

no test coverage detected