noppefoxwolf/notion is a notion.so API library written in swift.

Overview

notion

noppefoxwolf/notion is a notion.so API library written in swift.

Installation

Xcode

Project > Swift Packages

[email protected]:noppefoxwolf/notion.git

Swift Package Manager

Append following line to Package.swift.

dependencies: [
    .package(url: "https://github.com/noppefoxwolf/notion", from: "0.1.0")
}

Usage

import notion

let session = Session.shared
session.setAuthorization(token: "<<AUTHORIZE TOKEN>>")
session.send(V1.Users.List()).sink { result in
    // DO SOMETHING
}.store(in: &cancellables)

Support features

integration

  • internal integration
  • public integration

user

  • List all users
  • Retrieve a user

search

  • Search

block

  • Retrieve block children
  • Append block children

page

  • Update page properties
  • Create a page
  • Retrieve a page

database

List databases deprecated

  • Query a database
  • Retrieve a database

API Documents

Start building with the Notion API

Author

noppe

Issues
  • Fixup V1.Pages.Create parameters

    Fixup V1.Pages.Create parameters

    Abstract

    POST api.notion.com/v1/page を実行する V1.Pages.Create でリクエストを送ったらエラーがかえってきた。内容はRequest Bodyのフォーマットが違うためにnotionからvalidation_errorが返ってきていた。詳細は Request/Response 参考

    Request/Response

    Response

    {
        "code": "validation_error",
        "message": "body failed validation: body.properties.title.id should be an array, instead was
    `\"title\"`.",
        "object": "error",
        "status": 400
    }
    

    Request Bodyの問題の場所

      "properties": {
        "title": {
          "id": "title",
          "type": "title",
          "title": [
            {
              "annotations": {
                "color": "default"
              },
              "plain_text": "Nested Page",
              "href": null,
              "type": "text",
              "text": {
                "content": "Nested Page"
              }
            }
          ]
        }
      }
    
    Raw Request Body (めっちゃでかい)
    {
      "children": [
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "8b2e0fde-8fb5-45d7-9be7-8dcd257ed68f",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "https://github.com/bannzai",
                "href": "https://github.com/bannzai",
                "type": "text",
                "text": {
                  "content": "https://github.com/bannzai",
                  "link": {
                    "url": "https://github.com/bannzai"
                  }
                }
              }
            ]
          },
          "id": "39da4dec-1cc7-4586-910f-bfb6433073d2",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "9c396331-4e2b-4355-8e10-88b7636b4869",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "9d59701a-eed2-43b0-a862-8ac1f71a0aab",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ニンニク(蒜、大蒜、葫、忍辱",
                "href": null,
                "type": "text",
                "text": {
                  "content": "ニンニク(蒜、大蒜、葫、忍辱"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[4]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-4",
                "type": "text",
                "text": {
                  "content": "[4]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-4"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "学名",
                "href": "https://ja.wikipedia.org/wiki/%E5%AD%A6%E5%90%8D",
                "type": "text",
                "text": {
                  "content": "学名",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%AD%A6%E5%90%8D"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": ":Allium sativum)は",
                "href": null,
                "type": "text",
                "text": {
                  "content": ":Allium sativum)は"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ヒガンバナ科",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%92%E3%82%AC%E3%83%B3%E3%83%90%E3%83%8A%E7%A7%91",
                "type": "text",
                "text": {
                  "content": "ヒガンバナ科",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%92%E3%82%AC%E3%83%B3%E3%83%90%E3%83%8A%E7%A7%91"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ネギ属",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8D%E3%82%AE%E5%B1%9E",
                "type": "text",
                "text": {
                  "content": "ネギ属",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8D%E3%82%AE%E5%B1%9E"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "の多年草。香りが強く、強壮・",
                "href": null,
                "type": "text",
                "text": {
                  "content": "の多年草。香りが強く、強壮・"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "スタミナ",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%B9%E3%82%BF%E3%83%9F%E3%83%8A",
                "type": "text",
                "text": {
                  "content": "スタミナ",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%B9%E3%82%BF%E3%83%9F%E3%83%8A"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "増進作用があると信じられているため",
                "href": null,
                "type": "text",
                "text": {
                  "content": "増進作用があると信じられているため"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[5]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-5",
                "type": "text",
                "text": {
                  "content": "[5]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-5"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "球根",
                "href": "https://ja.wikipedia.org/wiki/%E7%90%83%E6%A0%B9",
                "type": "text",
                "text": {
                  "content": "球根",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E7%90%83%E6%A0%B9"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "(鱗茎)を",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(鱗茎)を"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "香辛料",
                "href": "https://ja.wikipedia.org/wiki/%E9%A6%99%E8%BE%9B%E6%96%99",
                "type": "text",
                "text": {
                  "content": "香辛料",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E9%A6%99%E8%BE%9B%E6%96%99"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "などとして食用にするほか、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "などとして食用にするほか、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "茎",
                "href": "https://ja.wikipedia.org/wiki/%E8%8C%8E",
                "type": "text",
                "text": {
                  "content": "茎",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E8%8C%8E"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "も「ニンニクの",
                "href": null,
                "type": "text",
                "text": {
                  "content": "も「ニンニクの"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "芽",
                "href": "https://ja.wikipedia.org/wiki/%E8%8A%BD",
                "type": "text",
                "text": {
                  "content": "芽",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E8%8A%BD"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "」(トウ)と呼ばれて",
                "href": null,
                "type": "text",
                "text": {
                  "content": "」(トウ)と呼ばれて"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "野菜",
                "href": "https://ja.wikipedia.org/wiki/%E9%87%8E%E8%8F%9C",
                "type": "text",
                "text": {
                  "content": "野菜",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E9%87%8E%E8%8F%9C"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "として調理される",
                "href": null,
                "type": "text",
                "text": {
                  "content": "として調理される"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[6]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-6",
                "type": "text",
                "text": {
                  "content": "[6]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-6"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "。かつて",
                "href": null,
                "type": "text",
                "text": {
                  "content": "。かつて"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "クロンキスト体系",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AD%E3%83%B3%E3%82%AD%E3%82%B9%E3%83%88%E4%BD%93%E7%B3%BB",
                "type": "text",
                "text": {
                  "content": "クロンキスト体系",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AD%E3%83%B3%E3%82%AD%E3%82%B9%E3%83%88%E4%BD%93%E7%B3%BB"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "による分類では",
                "href": null,
                "type": "text",
                "text": {
                  "content": "による分類では"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ユリ科",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%A6%E3%83%AA%E7%A7%91",
                "type": "text",
                "text": {
                  "content": "ユリ科",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%A6%E3%83%AA%E7%A7%91"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "に属していた。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "に属していた。"
                }
              }
            ]
          },
          "id": "cef7be2c-f441-4c4b-8fdf-272b2d6b77fa",
          "last_edited_time": "2021-06-23T04:01:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.685Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "日本ではニンニクや",
                "href": null,
                "type": "text",
                "text": {
                  "content": "日本ではニンニクや"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "ノビル",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8E%E3%83%93%E3%83%AB",
                "type": "text",
                "text": {
                  "content": "ノビル",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8E%E3%83%93%E3%83%AB"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(野蒜)など鱗茎を食用とする臭いの強い(ネギ属の)植物を総称して蒜(ひる)と呼び、特にノビルと区別する場合にはオオヒル(大蒜)とも称した。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(野蒜)など鱗茎を食用とする臭いの強い(ネギ属の)植物を総称して蒜(ひる)と呼び、特にノビルと区別する場合にはオオヒル(大蒜)とも称した。"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "漢方薬",
                "href": "https://ja.wikipedia.org/wiki/%E6%BC%A2%E6%96%B9%E8%96%AC",
                "type": "text",
                "text": {
                  "content": "漢方薬",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E6%BC%A2%E6%96%B9%E8%96%AC"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "の"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "生薬",
                "href": "https://ja.wikipedia.org/wiki/%E7%94%9F%E8%96%AC",
                "type": "text",
                "text": {
                  "content": "生薬",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E7%94%9F%E8%96%AC"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "名は大蒜(たいさん)。語源は、困難を耐え忍ぶという意味の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "名は大蒜(たいさん)。語源は、困難を耐え忍ぶという意味の"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "仏教",
                "href": "https://ja.wikipedia.org/wiki/%E4%BB%8F%E6%95%99",
                "type": "text",
                "text": {
                  "content": "仏教",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E4%BB%8F%E6%95%99"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "用語「",
                "href": null,
                "type": "text",
                "text": {
                  "content": "用語「"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "忍辱",
                "href": "https://ja.wikipedia.org/wiki/%E5%BF%8D%E8%BE%B1",
                "type": "text",
                "text": {
                  "content": "忍辱",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%BF%8D%E8%BE%B1"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "」(にんにく)とされる。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "」(にんにく)とされる。"
                }
              }
            ]
          },
          "id": "5df2c36c-5acf-42a8-943e-1efa6c8364fd",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "5月頃に白い小さな花を咲かせるが、栽培時には鱗茎を太らせるために花芽は摘み取る。摘み取った茎は柔らかい物であれば野菜として利用される(前述)。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "5月頃に白い小さな花を咲かせるが、栽培時には鱗茎を太らせるために花芽は摘み取る。摘み取った茎は柔らかい物であれば野菜として利用される(前述)。"
                }
              }
            ]
          },
          "id": "471891b8-b5f8-4bed-9529-a77312562a28",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "一般的に見かけるニンニクは分球ニンニクがほとんどであるが、一片種と呼ばれる中国の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "一般的に見かけるニニクは分球ニンニクがほとんどであるが、一片種と呼ばれる中国の"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "プチニンニク",
                "href": null,
                "type": "text",
                "text": {
                  "content": "プチニンニク"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(",
                "href": null,
                "type": "text",
                "text": {
                  "content": "("
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "en",
                "href": "https://en.wikipedia.org/wiki/Solo_garlic",
                "type": "text",
                "text": {
                  "content": "en",
                  "link": {
                    "url": "https://en.wikipedia.org/wiki/Solo_garlic"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": ")などの品種もある。",
                "href": null,
                "type": "text",
                "text": {
                  "content": ")などの品種もある。"
                }
              }
            ]
          },
          "id": "bae993b3-22b4-4c64-8d4b-c0b8ce1b1832",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "ジャンボニンニク",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%B8%E3%83%A3%E3%83%B3%E3%83%9C%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF",
                "type": "text",
                "text": {
                  "content": "ジャンボニンニク",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%B8%E3%83%A3%E3%83%B3%E3%83%9C%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "あるいは無臭ニンニクと呼ばれるものはニンニクとは別種であり、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "あるいは無臭ニンニクと呼ばれるものはニンニクとは別種であり、"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "リーキ",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%AA%E3%83%BC%E3%82%AD",
                "type": "text",
                "text": {
                  "content": "リーキ",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%AA%E3%83%BC%E3%82%AD"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(ポロネギ)の1",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(ポロネギ)の1"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "変種",
                "href": "https://ja.wikipedia.org/wiki/%E5%A4%89%E7%A8%AE",
                "type": "text",
                "text": {
                  "content": "変種",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%A4%89%E7%A8%AE"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "である。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "である。"
                }
              }
            ]
          },
          "id": "20e6fe68-8477-43dd-b000-2db370e87654",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "7000cf52-eee7-478a-80a2-9a443e2d2421",
          "last_edited_time": "2021-06-23T04:01:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-23T04:01:00.000Z"
        }
      ],
      "parent": {
        "type": "page_id",
        "page_id": "4e7bf595-2afa-46b3-b9cf-6f0a9f0c810e"
      },
      "properties": {
        "title": {
          "id": "title",
          "type": "title",
          "title": [
            {
              "annotations": {
                "color": "default"
              },
              "plain_text": "Nested Page",
              "href": null,
              "type": "text",
              "text": {
                "content": "Nested Page"
              }
            }
          ]
        }
      }
    }
    

    Notion APIのCreate Pageを見た感じだと properties { id,type } は不要だったので削除。id だけ消した場合でも type が arrayの必要がある。と返ってきたので idtypeV1.Pages.Create の引数から削除する。

    How

    • func に埋め込まれていたParameterをV1.Pages.Create.Parameterとなるように公開
    • Parameter.propertiesに不要なidとtypeが入らないように型を調整
    • ParameterのEncodeの処理で調整が必要だったので下記のことを実行
      • Object PackageのProperty.InternalTypeをpublicにして、API/V1 Packageから参照可能にする
      • Property.InternalTypeを使ってPrameter.propertiesを個別にencode
      • InternalType->PropertyTypeに変更

    Checked

    • [x] V1.Page.Createを使用してページが登録できる
    Raw Request Body (めっちゃ長い)
    {
      "properties": {
        "title": [
          {
            "annotations": {
              "color": "default"
            },
            "plain_text": "Nested Page",
            "href": null,
            "type": "text",
            "text": {
              "content": "Nested Page"
            }
          }
        ]
      },
      "parent": {
        "type": "page_id",
        "page_id": "4e7bf595-2afa-46b3-b9cf-6f0a9f0c810e"
      },
      "children": [
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "8b2e0fde-8fb5-45d7-9be7-8dcd257ed68f",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "https://github.com/bannzai",
                "href": "https://github.com/bannzai",
                "type": "text",
                "text": {
                  "content": "https://github.com/bannzai",
                  "link": {
                    "url": "https://github.com/bannzai"
                  }
                }
              }
            ]
          },
          "id": "39da4dec-1cc7-4586-910f-bfb6433073d2",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "9c396331-4e2b-4355-8e10-88b7636b4869",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "9d59701a-eed2-43b0-a862-8ac1f71a0aab",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ニンニク(蒜、大蒜、葫、忍辱",
                "href": null,
                "type": "text",
                "text": {
                  "content": "ニンニク(蒜、大蒜、葫、忍辱"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[4]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-4",
                "type": "text",
                "text": {
                  "content": "[4]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-4"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "学名",
                "href": "https://ja.wikipedia.org/wiki/%E5%AD%A6%E5%90%8D",
                "type": "text",
                "text": {
                  "content": "学名",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%AD%A6%E5%90%8D"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": ":Allium sativum)は",
                "href": null,
                "type": "text",
                "text": {
                  "content": ":Allium sativum)は"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ヒガンバナ科",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%92%E3%82%AC%E3%83%B3%E3%83%90%E3%83%8A%E7%A7%91",
                "type": "text",
                "text": {
                  "content": "ヒガンバナ科",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%92%E3%82%AC%E3%83%B3%E3%83%90%E3%83%8A%E7%A7%91"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ネギ属",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8D%E3%82%AE%E5%B1%9E",
                "type": "text",
                "text": {
                  "content": "ネギ属",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8D%E3%82%AE%E5%B1%9E"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "の多年。香りが強く、強壮・",
                "href": null,
                "type": "text",
                "text": {
                  "content": "の多年草。香りが強く、強壮・"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "スタミナ",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%B9%E3%82%BF%E3%83%9F%E3%83%8A",
                "type": "text",
                "text": {
                  "content": "スタミナ",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%B9%E3%82%BF%E3%83%9F%E3%83%8A"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "増進作用があると信じられているため",
                "href": null,
                "type": "text",
                "text": {
                  "content": "増進作用があると信じられているため"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[5]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-5",
                "type": "text",
                "text": {
                  "content": "[5]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-5"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "球根",
                "href": "https://ja.wikipedia.org/wiki/%E7%90%83%E6%A0%B9",
                "type": "text",
                "text": {
                  "content": "球根",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E7%90%83%E6%A0%B9"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "(鱗茎)を",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(鱗茎)を"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "香辛料",
                "href": "https://ja.wikipedia.org/wiki/%E9%A6%99%E8%BE%9B%E6%96%99",
                "type": "text",
                "text": {
                  "content": "香辛料",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E9%A6%99%E8%BE%9B%E6%96%99"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "などとして食用にするほか、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "などとして食用にするほか、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "茎",
                "href": "https://ja.wikipedia.org/wiki/%E8%8C%8E",
                "type": "text",
                "text": {
                  "content": "",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E8%8C%8E"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "も「ニンニクの",
                "href": null,
                "type": "text",
                "text": {
                  "content": "も「ニンニクの"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "芽",
                "href": "https://ja.wikipedia.org/wiki/%E8%8A%BD",
                "type": "text",
                "text": {
                  "content": "芽",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E8%8A%BD"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "」(トウ)と呼ばれて",
                "href": null,
                "type": "text",
                "text": {
                  "content": "」(トウ)と呼ばれて"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "野菜",
                "href": "https://ja.wikipedia.org/wiki/%E9%87%8E%E8%8F%9C",
                "type": "text",
                "text": {
                  "content": "野菜",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E9%87%8E%E8%8F%9C"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "として調理される",
                "href": null,
                "type": "text",
                "text": {
                  "content": "として調理される"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[6]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-6",
                "type": "text",
                "text": {
                  "content": "[6]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-6"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "。かつて",
                "href": null,
                "type": "text",
                "text": {
                  "content": "。かつて"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "クロンキスト体系",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AD%E3%83%B3%E3%82%AD%E3%82%B9%E3%83%88%E4%BD%93%E7%B3%BB",
                "type": "text",
                "text": {
                  "content": "クロンキスト体系",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AD%E3%83%B3%E3%82%AD%E3%82%B9%E3%83%88%E4%BD%93%E7%B3%BB"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "による分類では",
                "href": null,
                "type": "text",
                "text": {
                  "content": "による分類では"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ユリ科",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%A6%E3%83%AA%E7%A7%91",
                "type": "text",
                "text": {
                  "content": "ユリ科",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%A6%E3%83%AA%E7%A7%91"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "に属していた。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "に属していた。"
                }
              }
            ]
          },
          "id": "cef7be2c-f441-4c4b-8fdf-272b2d6b77fa",
          "last_edited_time": "2021-06-23T04:01:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.685Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "日本ではニンニクや",
                "href": null,
                "type": "text",
                "text": {
                  "content": "日本ではニンニクや"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "ノビル",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8E%E3%83%93%E3%83%AB",
                "type": "text",
                "text": {
                  "content": "ノビル",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8E%E3%83%93%E3%83%AB"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(野蒜)など鱗茎を食用とする臭いの強い(ネギ属の)植物を総称して蒜(ひる)と呼び、特にノビルと区別する場合にはオオヒル(大蒜)とも称した。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(野蒜)など鱗茎を食用とする臭いの強い(ネギ属の)植物を総称して蒜(ひる)と呼び、特にノビルと区別する場合にはオオヒル(大蒜)とも称した。"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "漢方薬",
                "href": "https://ja.wikipedia.org/wiki/%E6%BC%A2%E6%96%B9%E8%96%AC",
                "type": "text",
                "text": {
                  "content": "漢方薬",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E6%BC%A2%E6%96%B9%E8%96%AC"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "の"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "生薬",
                "href": "https://ja.wikipedia.org/wiki/%E7%94%9F%E8%96%AC",
                "type": "text",
                "text": {
                  "content": "生薬",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E7%94%9F%E8%96%AC"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "名は大蒜(たいさん)。語源は、困難を耐え忍ぶという意味の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "名は大蒜(たいさん)。語源は、困難を耐え忍ぶという意味の"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "仏教",
                "href": "https://ja.wikipedia.org/wiki/%E4%BB%8F%E6%95%99",
                "type": "text",
                "text": {
                  "content": "仏教",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E4%BB%8F%E6%95%99"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "用語「",
                "href": null,
                "type": "text",
                "text": {
                  "content": "用語「"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "忍辱",
                "href": "https://ja.wikipedia.org/wiki/%E5%BF%8D%E8%BE%B1",
                "type": "text",
                "text": {
                  "content": "忍辱",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%BF%8D%E8%BE%B1"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "」(にんにく)とされる。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "」(にんにく)とされる。"
                }
              }
            ]
          },
          "id": "5df2c36c-5acf-42a8-943e-1efa6c8364fd",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "5月頃に白い小さな花を咲かせるが、栽培時には鱗茎を太らせるために花芽は摘み取る。摘み取った茎は柔らかい物であれば野菜として利用される(前述)。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "5月頃に白い小さな花を咲かせるが、栽培時には鱗茎を太らせるために花芽は摘み取る。摘み取った茎は柔らかい物であれば野菜として利用される(前述)。"
                }
              }
            ]
          },
          "id": "471891b8-b5f8-4bed-9529-a77312562a28",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "一般的に見かけるニンニクは分球ニンニクがほとんどであるが、一片種と呼ばれる中国の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "一般的に見かけるニンニクは分球ニンニクがほとんどであるが、一片種と呼ばれる中国の"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "プチニンニク",
                "href": null,
                "type": "text",
                "text": {
                  "content": "プチニンニク"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(",
                "href": null,
                "type": "text",
                "text": {
                  "content": "("
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "en",
                "href": "https://en.wikipedia.org/wiki/Solo_garlic",
                "type": "text",
                "text": {
                  "content": "en",
                  "link": {
                    "url": "https://en.wikipedia.org/wiki/Solo_garlic"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": ")などの品種もある。",
                "href": null,
                "type": "text",
                "text": {
                  "content": ")などの品種もある。"
                }
              }
            ]
          },
          "id": "bae993b3-22b4-4c64-8d4b-c0b8ce1b1832",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "ジャンボニンニク",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%B8%E3%83%A3%E3%83%B3%E3%83%9C%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF",
                "type": "text",
                "text": {
                  "content": "ジャンボニンニク",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%B8%E3%83%A3%E3%83%B3%E3%83%9C%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "あるいは無臭ニンニクと呼ばれるものはニンニクとは別種であり、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "あるいは無臭ニンニクと呼ばれるものはニンニクとは別種であり、"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "リーキ",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%AA%E3%83%BC%E3%82%AD",
                "type": "text",
                "text": {
                  "content": "リーキ",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%AA%E3%83%BC%E3%82%AD"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(ポロネギ)の1",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(ポロネギ)の1"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "変種",
                "href": "https://ja.wikipedia.org/wiki/%E5%A4%89%E7%A8%AE",
                "type": "text",
                "text": {
                  "content": "変種",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%A4%89%E7%A8%AE"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "である。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "である。"
                }
              }
            ]
          },
          "id": "20e6fe68-8477-43dd-b000-2db370e87654",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "7000cf52-eee7-478a-80a2-9a443e2d2421",
          "last_edited_time": "2021-06-23T04:01:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-23T04:01:00.000Z"
        }
      ]
    }
    
    Response
    {
      "object": "page",
      "id": "e7f93f02-620f-4405-896c-911d2f4079ce",
      "created_time": "2021-06-24T01:39:27.405Z",
      "last_edited_time": "2021-06-24T01:39:27.410Z",
      "parent": {
        "type": "page_id",
        "page_id": "4e7bf595-2afa-46b3-b9cf-6f0a9f0c810e"
      },
      "archived": false,
      "properties": {
        "title": {
          "id": "title",
          "type": "title",
          "title": [
            {
              "type": "text",
              "text": {
                "content": "Nested Page",
                "link": null
              },
              "annotations": {
                "bold": false,
                "italic": false,
                "strikethrough": false,
                "underline": false,
                "code": false,
                "color": "default"
              },
              "plain_text": "Nested Page",
              "href": null
            }
          ]
        }
      }
    }
    
    opened by bannzai 1
  • Type of expression is ambiguous without more context

    Type of expression is ambiguous without more context

    App installed from xcode package manager

    Снимок экрана 2021-10-28 в 00 19 13

    When build app Снимок экрана 2021-10-28 в 00 19 41

    Build settings platform :osx, '15.0'

    opened by vortex14 1
  • add test actions

    add test actions

    opened by noppefoxwolf 0
  • Fix github actions test

    Fix github actions test

    opened by noppefoxwolf 0
  • Example for creating page with multiple properties

    Example for creating page with multiple properties

    Hi,

    Could you add an example for creating page with multiple properties?

    For example, a page with another property "Created Time"?

    Thanks!

    opened by getjennyli 2
Releases(0.1.2)
Owner
noppefoxwolf
きつねかわいい!!!
noppefoxwolf
Xcode template for VIPER Architecture written in Swift 4

⚠️ Deprecated ⚠️ This library is deprecated. When you decide to use VIPER architecture in your project, it is very tired create new modules, because y

Juanpe Catalán 536 Oct 24, 2021
A List of Awesome Swift Playgrounds

Awesome Swift Playgrounds A curated list of awesome Swift playgrounds. Contributing Please take a quick look at the contribution guidelines first. Tha

Umberto Raimondi 3.5k Nov 22, 2021
Learn Apple's Swift programming language interactively through these playgrounds.

learn-swift Learn Apple's Swift programming language interactively through these playgrounds. ###Target Audience Programmers familiar with C++ and/or

Paul Nettle 781 Nov 14, 2021
Airbnb's Swift Style Guide.

Airbnb Swift Style Guide Goals Following this style guide should: Make it easier to read and begin understanding unfamiliar code. Make code easier to

Airbnb 1.4k Nov 20, 2021
LinkedIn's Official Swift Style Guide

Swift Style Guide Make sure to read Apple's API Design Guidelines. Specifics from these guidelines + additional remarks are mentioned below. This guid

LinkedIn 1.3k Nov 15, 2021
The official Swift style guide for raywenderlich.com.

The Official raywenderlich.com Swift Style Guide. Updated for Swift 5 This style guide is different from others you may see, because the focus is cent

raywenderlich 11.8k Nov 14, 2021
A self-taught project to learn Swift.

30 Days of Swift Hi Community I am Allen Wang, a product designer and currently learning Swift. This project was totally inspired by Sam Lu's 100 Days

Allen Wang 11.2k Nov 7, 2021
Explanations and samples about the Swift programming language

About Swift Contents Explanations and samples about: Swift Programming Language Swift Standard Library Target audience Developers familiar with object

Nicola Lancellotti - About 69 Nov 10, 2021
A collection useful tips for the Swift language

SwiftTips The following is a collection of tips I find to be useful when working with the Swift language. More content is available on my Twitter acco

Vincent Pradeilles 868 Nov 17, 2021
Swift Featured Projects in brain Mapping

Swift 开源精选   自 2014年 WWDC 发布 Swift 语言以来,本项目 一直致力于将主流 Swift 中文学习、开发资源汇集于此,并且尽力紧密地跟踪、甄选优秀 Swift 开源项目,以方便开发者快速获得并使用。考虑 Swift 已经正式发布超过四年半(更无力管理维护海量的 Swift

iPader 15.6k Nov 21, 2021
A collection of Swift tips & tricks that I've shared on Twitter

⚠️ This list is no longer being updated. For my latest Swift tips, checkout the "Tips" section on Swift by Sundell. Swift tips & tricks ⚡️ One of the

John Sundell 3.8k Nov 26, 2021
An Xcode playground showcasing the new features in Swift 4.0.

What’s new in Swift 4 An Xcode playground showcasing the new features in Swift 4.0. As seen in the What’s New in Swift session at WWDC 2017. Written b

Ole Begemann 1.9k Nov 8, 2021
An opinionated starting point for awesome, reusable Swift 5 modules

Swift 5 Module Template Use this template as a starting point for any Swift 5 module that you want other people to include in their projects. STATUS:

William Entriken 371 Nov 19, 2021
Unofficial iOS/macOS SDK for the Notion API.

NotionClient: a Notion SDK for iOS & macOS Unofficial Notion API SDK for iOS & macOS. This is an alpha version and still work in progress. TODO Featur

David De Bels 14 Oct 22, 2021
Swifty Date & Time API inspired from Java 8 DateTime API.

AnyDate Swifty Date & Time API inspired from Java 8 DateTime API. Background I think that date & time API should be easy and accurate. Previous dates,

Jungwon An 182 Nov 2, 2021
MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.

MailCore 2: Introduction MailCore 2 provides a simple and asynchronous Objective-C API to work with the e-mail protocols IMAP, POP and SMTP. The API h

MailCore 2.3k Nov 23, 2021
An Elegant Spotify Web API Library Written in Swift for iOS and macOS

Written in Swift 4.2 Spartan is a lightweight, elegant, and easy to use Spotify Web API wrapper library for iOS and macOS written in Swift 3. Under th

Dalton Hinterscher 103 Sep 1, 2021
A JSON parser with concise API written in Swift.

A JSON parser with concise API written in Swift Maps JSON attributes to different Swift types with just two methods: map and mapArrayOfObjects. The li

Evgenii Neumerzhitckii 14 Aug 13, 2018
Google Directions API helper for iOS, written in Swift

PXGoogleDirections Google Directions API SDK for iOS, entirely written in Swift. ?? Features Supports all features from the Google Directions API as o

Romain L 267 Nov 10, 2021
Instagram API client written in Swift

SwiftInstagram is a wrapper for the Instagram API written in Swift. It allows you to authenticate users and request data from Instagram effortlessly.

Ander Goig 580 Nov 15, 2021
Google Directions API helper for iOS, written in Swift

PXGoogleDirections Google Directions API SDK for iOS, entirely written in Swift. ?? Features Supports all features from the Google Directions API as o

Romain L 267 Nov 10, 2021
Instagram API client written in Swift

SwiftInstagram is a wrapper for the Instagram API written in Swift. It allows you to authenticate users and request data from Instagram effortlessly.

Ander Goig 579 Oct 28, 2021
This library provides convenient way to use Coinpaprika.com API in Swift.

Coinpaprika API Swift Client Documentation | Repository | Installation Usage This library provides convenient way to use Coinpaprika.com API in Swift.

Coinpaprika 28 Nov 15, 2021
A Swift library for the Forecast.io Dark Sky API

Requirements To use ForecastIO, all you need is an API key for the Dark Sky API. ForecastIO supports iOS (≥9.0), macOS (≥10.10), watchOS (≥2.0), and t

Satyam Ghodasara 165 Sep 25, 2021
Library for iOS Camera API. Massively increase performance and ease of use within your next iOS Project.

CameraKit helps you add reliable camera to your app quickly. Our open source camera platform provides consistent capture results, service that scales,

CameraKit 600 Nov 20, 2021
A stable, mature and comprehensive Objective-C library for Twitter REST API 1.1

STTwitter A stable, mature and comprehensive Objective-C library for Twitter REST API 1.1 Like a FOSS version of Twitter Fabric TwitterKit, without th

Nicolas Seriot 1k Nov 10, 2021
🌊 - Jelly is a library for animated, non-interactive & interactive viewcontroller transitions and presentations with the focus on a simple and yet flexible API.

Jelly is a library for animated, non-interactive & interactive viewcontroller transitions and presentations with the focus on a simple and yet flexibl

Sebastian Boldt 2.3k Nov 18, 2021
🌊 - Jelly is a library for animated, non-interactive & interactive viewcontroller transitions and presentations with the focus on a simple and yet flexible API.

Jelly is a library for animated, non-interactive & interactive viewcontroller transitions and presentations with the focus on a simple and yet flexibl

Sebastian Boldt 2.3k Nov 21, 2021