Skip to content

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.

Notifications You must be signed in to change notification settings

s1031432/Asakusa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asakusa

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.

Screenshot

Demo outlet page1 page2

Features

  • 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.

Installation

  1. Clone the repository:
    git clone https://github.com/s1031432/asakusa.git
  2. Open the project in Xcode:
    cd asakusa
    open asakusa.xcodeproj
  3. Install dependencies (if any).
  4. Build and run the project on your preferred iOS device or simulator.

Usage

  1. Launch the app on your iOS device.
  2. Enter the number of the fortune you want to retrieve.
  3. The app will fetch the fortune data from the Google Apps Script API and display it.

API

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.

Example

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.

Contributing

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature-branch
  3. Make your changes and commit them:
    git commit -m 'Add some feature'
  4. Push to the branch:
    git push origin feature-branch
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages