Skip to content

moderathor12/DBGithub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

DB-Github VERSION: 2.0

GitHub Text Fetcher Extension for Kodular Easily fetch raw text data directly from GitHub for dynamic content in your Kodular apps.

About This Extension

This Kodular extension (GitHub Text Fetcher) provides a simple and efficient way for your applications to retrieve raw text content from any public GitHub file. This allows you to update in-app information (like announcements, configurations, news, etc.) without needing to publish a new app version.

Features

1.Asynchronous Data Fetching: Retrieves text data in the background without freezing your app's UI. 2.Direct GitHub Raw Link Support: Works directly with the raw file URLs from GitHub. 3.Event-Driven Responses: Triggers specific events for both successful data retrieval and any errors that occur. 4.Lightweight & Easy to Use: Minimal blocks required to integrate dynamic content.

Installation

Download the DB_Github.aix file from the root of this repository. Open Kodular Creator. In the Palette section, navigate to "Extension" and click "Import Extension." Select and import the downloaded GitHubTextFetcher.aix file. Drag the GitHubTextFetcher component from the "Extension" category onto your screen in the Designer.

Blocks

The DB_Github extension provides the following blocks for seamless integration with your Kodular projects:

  1. image

with this block you can call spesific text data but you must add its raw URL example: (https://raw.githubusercontent.com/your-username/your-repository/main/your-file.txt)

  1. image

This event is triggered when the text data has been successfully fetched from the GitHub raw URL specified in the GetGithubData call. This is where you will receive the content of your GitHub file.

  1. image

This event is triggered if an error occurs during the data fetching process (e.g., network issues, invalid URL, file not found, server errors, or any other issue that prevents a successful request).

  1. image

This event allows you to download a file from a specified URL (e.g., a raw GitHub file) and save it to a designated location on the user's device. This is particularly useful for downloading assets, configurations, or other files directly from your GitHub repository.

  1. image

This method is designed to fetch JSON formatted data from a specified URL, typically a raw JSON file hosted on GitHub.

  1. image

This event is triggered when a file initiated by the Download File method has been successfully downloaded and saved to the specified folderPath on the device.

  1. image

This event is triggered when JSON data, initiated by the FetchJsonData method, has been successfully fetched from the specified GitHub URL. This block provides the raw JSON content as a string, which you can then parse using Kodular's built-in JSON utilities.

About

get "text" data from github for your kodular io project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors