Skip to content

Commit

Permalink
Merge pull request #1510 from appwrite/feat-update-tech-partner-API
Browse files Browse the repository at this point in the history
Update Tech Partner API to new one
  • Loading branch information
ItzNotABug authored Jan 24, 2025
2 parents c894fc2 + a376fbe commit 4321a98
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/routes/integrations/technology-partner/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,22 @@
async function handleSubmit() {
error = undefined;
message = `Name of representative: ${name}\n\nWork Email: ${email}\n\nCompany Name: ${companyName}\n\nCompany Size: ${companySize}\n\nCompany Website: ${companyWebsite}\n\nIntegration status: ${integrationStatus}\n\nLink to Documentation: ${linkToDocumentation}\n\nLink to product/company assets: ${productUrl}\n\nDetails: ${extraDetails}`;
subject = `Technology Partner Application: ${companyName}`;
const response = await fetch(`${PUBLIC_GROWTH_ENDPOINT}/feedback`, {
const response = await fetch(`${PUBLIC_GROWTH_ENDPOINT}/conversations/technology-partner`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
name,
email,
firstName: name,
subject,
message,
companyName,
companySize,
companyWebsite,
integrationStatus,
integrationDocs: linkToDocumentation,
brandAssets: productUrl,
extraDetails,
...getReferrerAndUtmSource()
})
});
Expand Down

0 comments on commit 4321a98

Please sign in to comment.