openGraph static method

Future<OpenGraphModel> openGraph({
  1. required String requestUrl,
})

OpenGraph Info 획득

Implementation

static Future<OpenGraphModel> openGraph({
  required String requestUrl,
}) async {
  if (!requestUrl.startsWith("http")) {
    requestUrl = "https://$requestUrl";
  }
  var url = ApiPath.getOpenGraph.addGetParam({"url": requestUrl});

  var response = await get(url);
  return OpenGraphModel.fromJson(json.decode(response.body));
}