sendScrapMemo method

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

지정된 URL 을 스크랩하여, 카카오톡의 나와의 채팅방으로 메시지 전송

Implementation

Future<void> sendScrapMemo({
  required String url,
  int? templateId,
  Map<String, String>? templateArgs,
}) async {
  final params = {
    Constants.requestUrl: url,
    Constants.templateId: templateId,
    Constants.templateArgs:
        templateArgs == null ? null : jsonEncode(templateArgs)
  };
  return _memo(Constants.scrapPath, params);
}