{"id":1287,"date":"2020-12-11T15:30:35","date_gmt":"2020-12-11T07:30:35","guid":{"rendered":"http:\/\/123.57.164.21\/?p=1287"},"modified":"2020-12-11T15:30:35","modified_gmt":"2020-12-11T07:30:35","slug":"ios14-widget%e5%b0%8f%e7%bb%84%e4%bb%b6%e5%bc%80%e5%8f%91%e5%ae%9e%e8%b7%b52-%e8%87%aa%e5%ae%9a%e4%b9%89widget","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=1287","title":{"rendered":"iOS14 Widget\u5c0f\u7ec4\u4ef6\u5f00\u53d1\u5b9e\u8df52\u2014\u2014\u81ea\u5b9a\u4e49Widget"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/12\/image-9-478x1024.png\" alt=\"\" class=\"wp-image-1288\" width=\"244\" height=\"521\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/12\/image-9-140x300.png 140w, https:\/\/92it.top\/wp-content\/uploads\/2020\/12\/image-9-230x492.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/12\/image-9-350x749.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/12\/image-9.png 610w\" sizes=\"(max-width: 244px) 100vw, 244px\" \/><\/figure><\/div>\n\n\n\n<p>\u4eca\u5929\u8981\u6765\u81ea\u5b9a\u4e49\u4e00\u4e2a\u5c55\u793a\u8bd7\u8bcd\u7684\u5c0f\u7ec4\u4ef6<code>Widget<\/code>\uff0c\u5b83\u663e\u793a\u7684\u5185\u5bb9\u5305\u62ec\uff1a\u8bd7\u8bcd\u540d\u5b57\u3001\u4f5c\u8005\u3001\u524d\u4e24\u53e5\uff08\u4e3a\u4ec0\u4e48\u53ea\u663e\u793a\u524d\u4e24\u53e5\u5462\uff0c\u56e0\u4e3a\u6211\u627e\u7684\u514d\u8d39<code>API<\/code>\u5b83\u53ea\u6709\u7ed9\u524d\u4e24\u53e5\ud83d\ude0e\uff09\u3002\u5207\u5165\u6b63\u9898\uff0c\u63a5\u4e0b\u91cc\u5f00\u59cb\u5b9e\u73b0\u3002<\/p>\n\n\n\n<p><strong>1\u3001\u65b0\u5efa\u4e00\u4e2a<code>Widget Extension<\/code>\uff0c\u547d\u540d<code>PoetryWidget<\/code>\u3002<\/strong><br><strong>2\u3001\u83b7\u53d6\u7f51\u7edc\u6570\u636e\u8bf7\u6c42\u5904\u7406<\/strong><br>\u5148\u770b\u4e0b\u514d\u8d39\u7684<code>API<\/code>\u63a5\u53e3\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fv1.alapi.cn%2Fapi%2Fshici%3Ftype%3Dshuqing\" target=\"_blank\">https:\/\/v1.alapi.cn\/api\/shici?type=shuqing<\/a>\u7684\u8fd4\u56de\u53c2\u6570\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n    \"code\": 200,\n    \"msg\": \"success\",\n    \"data\": {\n        \"content\": \"\u8303\u589e\u4e00\u53bb\u65e0\u8c0b\u4e3b\uff0c\u97e9\u4fe1\u539f\u6765\u662f\u9010\u81e3\u3002\",\n        \"origin\": \"\u4e4c\u6c5f\u9879\u738b\u5e99\",\n        \"author\": \"\u4e25\u9042\u6210\",\n        \"category\": \"\u53e4\u8bd7\u6587-\u6292\u60c5-\u7231\u56fd\"\n    },\n    \"author\": {\n        \"name\": \"Alone88\",\n        \"desc\": \"\u7531Alone88\u63d0\u4f9b\u7684\u514d\u8d39API \u670d\u52a1\uff0c\u5b98\u65b9\u6587\u6863\uff1awww.alapi.cn\"\n    }\n}<\/pre>\n\n\n\n<p>\u58f0\u660e\u4e00\u4e2a\u8bd7\u8bcd\u9700\u8981\u7684\u6570\u636e<code>model<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">struct Poetry {\n    let content: String \/\/ \u5185\u5bb9\n    let origin: String \/\/ \u540d\u5b57\n    let author: String \/\/ \u4f5c\u8005\n}<\/pre>\n\n\n\n<p>\u65e2\u7136\u662f\u8bf7\u6c42<code>API<\/code>\u63a5\u53e3\uff0c\u90a3\u5c31\u9700\u8981\u4e00\u4e2a\u8bf7\u6c42\u51fd\u6570\uff0c\u5e76\u4e14\u56de\u8c03\u8bf7\u6c42\u53c2\u6570\uff0c\u58f0\u660e\u4e00\u4e2a\u8bf7\u6c42\u5de5\u5177\uff0c\u5b9e\u73b0\u6570\u636e\u8bf7\u6c42\u4ee5\u53ca<code>json<\/code>\u8f6c<code>model<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">struct PoetryRequest {\n    static func request(completion: @escaping (Result&lt;Poetry, Error>) -> Void) {\n        let url = URL(string: \"https:\/\/v1.alapi.cn\/api\/shici?type=shuqing\")!\n        let task = URLSession.shared.dataTask(with: url) { (data, response, error) in\n            guard error == nil else {\n                completion(.failure(error!))\n                return\n            }\n            let poetry = poetryFromJson(fromData: data!)\n            completion(.success(poetry))\n        }\n        task.resume()\n    }\n    \n    static func poetryFromJson(fromData data: Data) -> Poetry {\n        let json = try! JSONSerialization.jsonObject(with: data, options: []) as! [String: Any]\n        \/\/\u56e0\u4e3a\u514d\u8d39\u63a5\u53e3\u8bf7\u6c42\u9891\u7387\u95ee\u9898\uff0c\u5982\u679c\u592a\u9891\u7e41\u4e86\uff0c\u8bf7\u6c42\u53ef\u80fd\u5931\u8d25\uff0c\u8fd9\u91cc\u505a\u4e0b\u5904\u7406\uff0c\u653e\u7f6ecrash\n        guard let data = json[\"data\"] as? [String: Any] else {\n            return Poetry(content: \"\u8bd7\u8bcd\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u7a0d\u5fae\u518d\u8bd5\uff01\", origin: \"\u8010\u4f9d\u798f\", author: \"\u4f5a\u540d\")\n        }\n        let content = data[\"content\"] as! String\n        let origin = data[\"origin\"] as! String\n        let author = data[\"author\"] as! String\n        return Poetry(content: content, origin: origin, author: author)\n    }\n}<\/pre>\n\n\n\n<p><strong>3\u3001\u642d\u5efa\u5c55\u793a\u754c\u9762<\/strong><br>\u6570\u636e\u6709\u4e86\uff0c\u5c31\u53ef\u4ee5\u5b9e\u73b0\u754c\u9762\u642d\u5efa\u4e86\uff0c\u8fd9\u91cc\u5fc5\u987b\u7528<code>SwiftUI<\/code>\u5b9e\u73b0\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">struct PoetryWidgetView: View {\n    let entry: PoetryEntry\n\n    var body: some View {\n        VStack(alignment: .leading, spacing: 4) {\n            Text(entry.poetry.origin)\n                .font(.system(size: 20))\n                .fontWeight(.bold)\n            Text(entry.poetry.author)\n                .font(.system(size: 16))\n            Text(entry.poetry.content)\n                .font(.system(size: 18))\n        }\n        .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity, alignment: .leading)\n        .padding()\n        .background(LinearGradient(gradient: Gradient(colors: [.init(red: 144 \/ 255.0, green: 252 \/ 255.0, blue: 231 \/ 255.0), .init(red: 50 \/ 204, green: 188 \/ 255.0, blue: 231 \/ 255.0)]), startPoint: .topLeading, endPoint: .bottomTrailing))\n    }\n}<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\n<\/pre>\n\n\n\n<p>\u8fd9\u91cc\u7528\u4e86\u4e09\u4e2a<code>Text<\/code>\u6587\u672c\u7ec4\u4ef6\u6765\u5c55\u793a\u4e09\u90e8\u5206\u5185\u5bb9\uff0c\u5f88\u660e\u663e\u8fd9\u91cc\u6ca1\u6709\u5206\u522b\u5904\u7406\u4e09\u79cd\u6837\u5f0f\u7684<code>UI<\/code>\uff0c\u56e0\u6b64\u5728\u7f16\u8f91\u9884\u89c8\u754c\u9762\uff0c\u4e09\u79cd\u6837\u5f0f\u7684<code>Widget<\/code>\u80fd\u63d0\u4f9b\u7684\u5185\u5bb9\u662f\u4e00\u6837\u7684\uff0c\u5982\u679c\u8981\u5b9e\u73b0\u4e09\u79cd\u6837\u5f0f\u5404\u663e\u793a\u4e0d\u540c\u7684\u5185\u5bb9\uff0c\u9700\u8981\u83b7\u53d6<code>WidgetFamily<\/code>\u7684\u5b9e\u4f8b\u5c5e\u6027\uff0c\u5b9e\u73b0\u4e0d\u540c\u7684\u754c\u9762\u5c55\u793a\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@Environment(\\.widgetFamily) var family: WidgetFamily<\/pre>\n\n\n\n<p>\u6765\u770b\u770b\u82f9\u679c\u5b98\u65b9\u6587\u6863\u7684\u76f8\u5173\u5b9e\u73b0\u4ee3\u7801\u7247\u6bb5\u4f8b\u5b50\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">struct GameStatusView : View {\n    @Environment(\\.widgetFamily) var family: WidgetFamily\n    var gameStatus: GameStatus\n\n    @ViewBuilder\n    var body: some View {\n        switch family {\n        case .systemSmall: GameTurnSummary(gameStatus)\n        case .systemMedium: GameStatusWithLastTurnResult(gameStatus)\n        case .systemLarge: GameStatusWithStatistics(gameStatus)\n        default: GameDetailsNotAvailable()\n        }\n    }\n}<\/pre>\n\n\n\n<p><strong>4\u3001\u5b9e\u73b0<code>PoetryEntry<\/code><\/strong><br>\u8ba9\u7ed3\u6784\u4f53<code>PoetryEntry<\/code>\u9075\u5b88<code>TimelineEntry<\/code>\u534f\u8bae<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">struct PoetryEntry: TimelineEntry {\n    var date: Date\n    let poetry: Poetry \/\/ \u53ef\u4ee5\u7406\u89e3\u4e3a\u7ed1\u5b9a\u4e86Poetry\u6a21\u578b\u6570\u636e\n}<\/pre>\n\n\n\n<p><strong>5\u3001\u5b9e\u73b0<code>PoetryProvider<\/code><\/strong><br>\u8ba9\u7ed3\u6784\u4f53<code>PoetryProvider<\/code>\u9075\u5b88<code>TimelineProvider<\/code>\u534f\u8bae\uff0c\u540c\u65f6\u5b9e\u73b0\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">struct PoetryProvider: TimelineProvider {\n    func placeholder(in context: Context) -> PoetryEntry { ...... }\n    func getSnapshot(in context: Context, completion: @escaping (PoetryEntry) -> Void) { ...... }\n    func getTimeline(in context: Context, completion: @escaping (Timeline&lt;PoetryEntry>) -> Void) { ...... }\n}<\/pre>\n\n\n\n<p><code>placeholder<\/code>\uff1a\u5b9e\u73b0\u9ed8\u8ba4\u89c6\u56fe<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">func placeholder(in context: Context) -> PoetryEntry {\n     let poetry = Poetry(content: \"\u5e8a\u524d\u660e\u6708\u5149\uff0c\u7591\u4f3c\u5730\u4e0a\u971c\", origin: \"\u8010\u4f9d\u798f\", author: \"\u4f5a\u540d\")\n     return PoetryEntry(date: Date(), poetry: poetry)\n}<\/pre>\n\n\n\n<p><code>getSnapshot<\/code>\uff1a\u5728\u7ec4\u4ef6\u7684\u6dfb\u52a0\u9875\u9762\u53ef\u4ee5\u770b\u5230\u6548\u679c<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">func getSnapshot(in context: Context, completion: @escaping (PoetryEntry) -> Void) {\n    let poetry = Poetry(content: \"\u5e8a\u524d\u660e\u6708\u5149\uff0c\u7591\u4f3c\u5730\u4e0a\u971c\", origin: \"\u6708\u5149\u5149\", author: \"\u4f5a\u540d\")\n    let entry = PoetryEntry(date: Date(), poetry: poetry)\n    completion(entry)\n}<\/pre>\n\n\n\n<p><code>getTimeline<\/code>\uff1a\u5728\u8fd9\u4e2a\u65b9\u6cd5\u5185\u53ef\u4ee5\u8fdb\u884c\u7f51\u7edc\u8bf7\u6c42\uff0c\u62ff\u5230\u7684\u6570\u636e\u4fdd\u5b58\u5728\u5bf9\u5e94\u7684<code>entry<\/code>\u4e2d\uff0c\u8c03\u7528<code>completion<\/code>\u4e4b\u540e\u4f1a\u5230\u5237\u65b0\u5c0f\u7ec4\u4ef6<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8fd9\u91cc\u6709\u5751\u9ad8\u80fd\uff01\uff01\uff01<\/h4>\n\n\n\n<p><strong>\u8fd9\u91cc\u5173\u4e8e\u5237\u65b0\u7b56\u7565\uff0c\u6839\u636e\u5b98\u65b9\u6587\u6863\u6765\u770b\uff0c<code>Timeline<\/code>\u7684\u5237\u65b0\u7b56\u7565\u662f\u4f1a\u5ef6\u8fdf\u7684\uff0c\u5e76\u4e0d\u4e00\u5b9a\u6839\u636e\u4f60\u8bbe\u5b9a\u7684\u65f6\u95f4\u6765\u3002\u540c\u65f6\u5b98\u65b9\u89c4\u5b9a\u6bcf\u4e2a\u914d\u7f6e\u7684\u7a97\u53e3\u5c0f\u90e8\u4ef6\u6bcf\u5929\u90fd\u63a5\u6536\u6709\u9650\u6570\u91cf\u7684\u5237\u65b0\uff0c\u5177\u4f53\u7684\u8be6\u60c5\u8bf4\u660e\u8bf7\u770b\u5b98\u65b9\u89e3\u91ca\uff1a<a href=\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fdeveloper.apple.com%2Fdocumentation%2Fwidgetkit%2Ftimelineprovider\" target=\"_blank\" rel=\"noreferrer noopener\">TimelineProvider<\/a><\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">func getTimeline(in context: Context, completion: @escaping (Timeline&lt;PoetryEntry>) -> Void) {\n    let currentDate = Date()\n    \/\/ \u4e0b\u4e00\u6b21\u66f4\u65b0\u95f4\u9694\u4ee5\u5206\u949f\u4e3a\u5355\u4f4d\uff0c\u95f4\u96945\u5206\u949f\u8bf7\u6c42\u4e00\u6b21\u65b0\u7684\u6570\u636e\n    let updateDate = Calendar.current.date(byAdding: .minute, value: 5, to: currentDate)\n    PoetryRequest.request { result in\n        let poetry: Poetry\n        if case .success(let response) = result {\n            poetry = response\n        } else {\n            poetry = Poetry(content: \"\u8bd7\u8bcd\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u7a0d\u5fae\u518d\u8bd5\uff01\", origin: \"\u8010\u4f9d\u798f\", author: \"\u4f5a\u540d\")\n        }\n        let entry = PoetryEntry(date: currentDate, poetry: poetry)\n        let timeline = Timeline(entries: [entry], policy: .after(updateDate!))\n        completion(timeline)\n    }\n}<\/pre>\n\n\n\n<p><strong>\u5b9e\u73b0<code>PoetryWidget<\/code><\/strong><br><code>@main<\/code>\uff1a\u4ee3\u8868\u7740<code>Widget<\/code>\u7684\u4e3b\u5165\u53e3\uff0c\u7cfb\u7edf\u4ece\u8fd9\u91cc\u52a0\u8f7d<br><code>kind<\/code>\uff1a\u662f<code>Widget<\/code>\u7684\u552f\u4e00\u6807\u8bc6<br><code>StaticConfiguration<\/code>\uff1a\u521d\u59cb\u5316\u914d\u7f6e\u4ee3\u7801<br><code>configurationDisplayName<\/code>\uff1a\u6dfb\u52a0\u7f16\u8f91\u754c\u9762\u5c55\u793a\u7684\u6807\u9898<br><code>description<\/code>\uff1a\u6dfb\u52a0\u7f16\u8f91\u754c\u9762\u5c55\u793a\u7684\u63cf\u8ff0\u5185\u5bb9<br><code>supportedFamilies<\/code>\u8fd9\u91cc\u53ef\u4ee5\u9650\u5236\u8981\u63d0\u4f9b\u4e09\u4e2a\u6837\u5f0f\u4e2d\u7684\u54ea\u51e0\u4e2a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@main\nstruct PoetryWidget: Widget {\n    var body: some WidgetConfiguration {\n        StaticConfiguration(kind: \"PoetryWidget\", provider: PoetryProvider()) { entry in\n            PoetryWidgetView(entry: entry)\n        }\n        .configurationDisplayName(\"\u6bcf\u65e5\u4e00\u6e7f\")\n        .description(\"\u9ed8\u8bfb\u5e76\u80cc\u8bf5\u5168\u6587\")\n    }\n}<\/pre>\n\n\n\n<p>\u5230\u8fd9\u91cc\u4e00\u4e2a\u5b8c\u6574\u7684<code>Widget<\/code>\u5c0f\u7ec4\u4ef6\u7684\u5b9e\u73b0\u5c31\u5b8c\u6210\u4e86\uff0c\u7136\u540e\u5c31\u8ba9\u4ee3\u7801\u8dd1\u8d77\u6765\uff0c\u770b\u770b\u6548\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u8981\u6765\u81ea\u5b9a\u4e49\u4e00\u4e2a\u5c55\u793a\u8bd7\u8bcd\u7684\u5c0f\u7ec4\u4ef6Widget\uff0c\u5b83\u663e\u793a\u7684\u5185\u5bb9\u5305\u62ec\uff1a\u8bd7\u8bcd\u540d\u5b57\u3001\u4f5c\u8005\u3001\u524d\u4e24\u53e5\uff08\u4e3a\u4ec0\u4e48\u53ea\u663e\u793a\u524d\u4e24\u53e5\u5462 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1287"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1287"}],"version-history":[{"count":1,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1287\/revisions"}],"predecessor-version":[{"id":1289,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1287\/revisions\/1289"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}