This project is a Swift iOS application designed to display fortunes from the Asakusa Shrine. The fortunes are stored in Google Apps Script and can be accessed via an API. The app allows users to fetch specific fortunes using a query parameter.
- Fetches fortunes using an API with query parameters.
- Displays the content of the fortune in a user-friendly interface.
- Supports retrieval of specific fortunes by number.
- Clone the repository:
git clone https://github.com/s1031432/asakusa.git
- Open the project in Xcode:
cd asakusa open asakusa.xcodeproj
- Install dependencies (if any).
- Build and run the project on your preferred iOS device or simulator.
- Launch the app on your iOS device.
- Enter the number of the fortune you want to retrieve.
- The app will fetch the fortune data from the Google Apps Script API and display it.
The app uses a Google Apps Script API to fetch fortune data. The URL format is as follows:
https://script.google.com/macros/s/AKfycbzgLMd3zq4epimJz2nV98oJ_UkE8W0EvgeBvvKdiqvzO5wXbQaKU3bYIAgM-_lgElSkcw/exec?number={fortune_number}
Replace {fortune_number}
with the specific number (1-100) of the fortune you want to retrieve.
To fetch the 87th fortune, the URL would be:
https://script.google.com/macros/s/AKfycbz_7GMhrxE0fzbiKDgkTtFPh0KiniMTZUz-Iepp0VeoMBTvp6EpmSmB-SYywLJPWfvbjQ/exec?number=87
If no number is provided, a signed poem will be returned randomly.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature-branch
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.