scrap method

Future<SharingResult> scrap(
  1. String url,
  2. {int? templateId,
  3. Map<String, String>? templateArgs}
)

지정된 URL을 스크랩하여 만들어진 템플릿을 카카오톡 메시지로 공유

Implementation

Future<SharingResult> scrap(String url,
    {int? templateId, Map<String, String>? templateArgs}) async {
  var params = {
    Constants.requestUrl: url,
    Constants.templateId: templateId,
    Constants.templateArgs:
        templateArgs == null ? null : jsonEncode(templateArgs)
  };
  params.removeWhere((k, v) => v == null);
  return _validate(Constants.scrap, params);
}