sendScrapMemo method

Future<void> sendScrapMemo({
  1. required String url,
  2. int? templateId,
  3. Map<String, String>? templateArgs,
})

KO: 나에게 스크랩 메시지 발송
url에 스크랩할 URL 전달
templateId에 메시지 템플릿 ID 전달
templateArgs에 사용자 인자 전달

EN: Send scrape message to me
Pass the URL to scrape to url
Pass the message template ID to templateId
Pass the user arguments to templateArgs

Implementation

Future<void> sendScrapMemo({
  required String url,
  int? templateId,
  Map<String, String>? templateArgs,
}) {
  SdkLog.d(
    '[TalkApi.sendScrapMemo] started | url=$url templateId=$templateId templateArgsCount=${templateArgs?.length ?? 0}',
  );
  return _sendMemo(
    pathPart: Constants.scrapPath,
    params: {
      Constants.requestUrl: url,
      Constants.templateId: ?templateId,
      Constants.templateArgs: ?templateArgs?.toJson(),
    },
  );
}