feat(hubspot): Implement create contact action
This commit is contained in:

committed by
Faruk AYDIN

parent
9fbc9d59f5
commit
8ea8067788
12
packages/backend/src/apps/hubspot/auth/verify-credentials.ts
Normal file
12
packages/backend/src/apps/hubspot/auth/verify-credentials.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { IGlobalVariable } from '@automatisch/types';
|
||||
|
||||
const verifyCredentials = async ($: IGlobalVariable) => {
|
||||
await $.http.get(
|
||||
`/crm/v3/objects/contacts?limit=1`,
|
||||
);
|
||||
await $.auth.set({
|
||||
screenName: $.auth.data?.displayName,
|
||||
});
|
||||
};
|
||||
|
||||
export default verifyCredentials;
|
Reference in New Issue
Block a user