Imagine With Craft

Craft API로 Apple Shortcuts에서 빌드하기

With the API switched on, your Craft docs are ready to power your workflows. Automate with Apple Shortcuts and build upon your docs.

Craft
Apple Shortcuts

문서용 API 활성화

먼저 API를 활성화해 데일리 노트용 API 호출 경로가 생성될 수 있게 설정해야 합니다. 그 후 Apple Shortcuts에서 그 URL을 사용해 서버에 연결하세요.

사이드바에서 "상상해보기" 버튼을 클릭하세요

Step 1

"상상해보기" 탭을 열어보세요
"첫 번째 API 추가" 버튼을 클릭하세요

Step 2

"첫 번째 API 추가"를 클릭하세요
API 연결 설정하기

Step 3

API 연결에 이름을 설정하세요
"문서 추가" 버튼을 클릭하세요

Step 4

"문서 추가"를 클릭해 API를 연결할 문서를 선택하세요.
API URL이 상단에 표시됩니다

Step 5

문서와 연결되는 API URL이 이제 상단에 표시됩니다
"AI 번들 다운로드" 버튼을 클릭하세요

Step 6

"AI 번들 다운로드" 버튼을 클릭하세요. API 문서와 해당 문서의 내용이 담긴 폴더가 다운로드됩니다.

Apple 단축어에서 API 사용하기

Craft 문서에서 API를 활성화하면, Apple 단축어에서 API를 활용해 작업을 자동화할 수 있습니다.

Apple 단축어를 사용하면 택 한번, Siri 음성 명령, 혹은 자동 실행으로 여러 작업을 한꺼번에 처리할 수 있습니다.

Create a new shortcut

Step 1

In Shortcuts, create a new shortcut. These examples show how to create your shortcut on macOS, but the same process applies to iOS too.
Configure the shortcut

Step 2

Set up the basic settings for your shortcut. Here, we are going to create a shortcut that saves a voice note to your Craft doc.
Connect to Craft API

Step 3

Using the Get Contents of URL action, you can use the API endpoints to work with your Craft doc. Learn more about Web APIs in Shortcuts here.
Configure your API calls

Step 4

Configure your API calls to use the endpoints you need, and send the correct data. Here, we are going to insert the transcribed voice note as a text block. Read more about JSON in Shortcuts here.
Use your shortcut

Step 5

Now your shortcut is ready! We added it to the lock screen, to quickly save a voice note to your Craft doc.

Some Ideas to Get You Started

Browse Examples