Skip to main content

getSocialProfilesByMoxieIdMultiple

Description

getSocialProfilesByMoxieIdMultiple is a function that returns the social profiles (e.g. X, Farcaster, etc.) attached to a given Senpi user.

Usage

import { moxieUserService } from "@moxie-protocol/moxie-agent-lib";

const socialProfiles =
await moxieUserService.getSocialProfilesByMoxieIdMultiple(
["M1"],
state.authorizationHeader as string,
stringToUuid("SKILL_NAME")
);

Response

{
"userIdToSocialProfile": {
"M1": {
"twitterUsername": "VitalikButerin",
"farcasterUsername": "vitalik.eth",
"farcasterUserId": "5160"
}
},
"errorDetails": null,
"freeTrialLimit": 0,
"remainingFreeTrialCount": 0
}

Type Signature

export async function getSocialProfilesByMoxieIdMultiple(
userIds: string[],
bearerToken: string,
pluginId: string
);

Parameters

ParameterTypeDescription
userIdsstring[]The Senpi User IDs to get the social profiles for
bearerTokenstringThe bearer token to use for the request
pluginIdstringThe Skill Name to use for the request

Fields

FieldTypeDescription
userIdToSocialProfileRecord<string, SocialProfile>The social profiles for the given user
errorDetailsErrorDetailsThe error details for the request
freeTrialLimitnumberThe free trial limit for the request
remainingFreeTrialCountnumberThe remaining free trial count for the request