June 2022 Summaries
2 posts from Liblab
Filter
Month:
Year:
Post Summaries
Back to Blog
This tutorial guides the creation of files and their commitment to a GitHub repository using Octokit and TypeScript. To get started, one needs to install Octokit via npm, create a TypeScript entry point with an instance of the Octokit client, and replace placeholders with actual credentials for authentication. The process involves generating a tree by retrieving the latest commits, adding files to the tree in a specific format, constructing the tree, committing the files, and pushing the commit to the repository. This approach allows developers to easily manage automatically generated or frequently changing files in their repositories.
Jun 27, 2022
689 words in the original blog post.
The goal of this post is to build a library that retrieves the latest price of a list of cryptocurrencies, uses the CoinMarketCap API, and provides a simple code structure for creating a Swift package using the Swift Package Manager. The sample server API endpoint used in this example is /v2/cryptocurrency/quotes/latest. A struct called CoinRetriever exposes only one function that retrieves the latest price of a list of coins by calling the CoinMarketCap API endpoint and decoding the response into models such as Quote, Coin, and Coins. The library can be published to GitHub and used in other projects via Xcode's Package Manager. Additionally, liblab offers an automated process for generating client libraries in multiple languages and platforms.
Jun 02, 2022
1,393 words in the original blog post.