async addMemberToCard()

in src/Worker.ts [395:416]


  async addMemberToCard() {
    const client = await this.kintoneClientCreator.createKintoneClient([
      this.apps.members.token,
      this.apps.cards.token,
    ]);
    const recordId = await this.getCardRecordIdIfNotExistsCreateCard(client);
    const kintoneUserCode = await this.getKintoneUserCodeIfNotExistsAddMember(
      client
    );
    const kintoneUserCodesOfSetted = await ApiExecutor.getKintoneUserCodesOfSetted(
      client,
      this.apps.cards.id,
      this.trelloAction.data
    );
    return ApiExecutor.addMemberToCard(
      client,
      this.apps.cards.id,
      recordId as string,
      kintoneUserCode,
      kintoneUserCodesOfSetted
    );
  }