Editframe Kotlin Client library

Overview

Editframe Kotlin Client library

Installing

Add the project to your gradle dependencies. It also depends on a ktor client.

plugins {
    kotlin("jvm") version "1.6.10"
    application
}

repositories {
    mavenCentral()
}

dependencies {
    implementation("com.editframe:editframe-kt-jvm:0.1.0-alpha")
    implementation("io.ktor:ktor-client-cio:1.6.7")
}

Usage

" const val API_TOKEN = " " suspend fun main(args: Array ) { // Instantiate a new API instance val api = Editframe(CLIENT_ID, API_TOKEN) // You can choose to override the default http implementation // Editframe(CLIENT_ID, API_TOKEN, httpClient = ) val (id) = api.videos.newAndEncode { backgroundColor = "#333333" duration = 10 image("https://picfiles.alphacoders.com/282/thumb-1920-282237.jpg") filter(Brightness(-.1)) text("This is My Test Video With a Fox") { horizontalAlignment = AlignH.CENTER verticalAlignment = AlignV.MIDDLE color = "#ffffff" } } val video = api.videos.get(id) println(video) }">
import Editframe
import com.editframe.modules.video.*
import Filter.*

// These values are found in the application page of the Editframe portal
const val CLIENT_ID = "
       
        "
       
const val API_TOKEN = "
       
        "
       

suspend fun main(args: Array<String>) {
    // Instantiate a new API instance
    val api = Editframe(CLIENT_ID, API_TOKEN)
    // You can choose to override the default http implementation
    // Editframe(CLIENT_ID, API_TOKEN, httpClient = 
       
        )
       

    val (id) = api.videos.newAndEncode {
        backgroundColor = "#333333"
        duration = 10
        image("https://picfiles.alphacoders.com/282/thumb-1920-282237.jpg")
        filter(Brightness(-.1))
        text("This is My Test Video With a Fox") {
            horizontalAlignment = AlignH.CENTER
            verticalAlignment = AlignV.MIDDLE
            color = "#ffffff"
        }
    }

    val video = api.videos.get(id)

    println(video)
}

Testing

Library tests can be run with

$ ./gradlew test

To test GH actions you will need to install act

# act depends on docker
$ brew install --cask docker
$ brew install act
# use the appropriate docker architecture
$ act --container-architecture linux/amd64

Roadmap

  • Use kotlin datetime when it becomes stable
  • Create singleton requester wrapper around base class client
You might also like...
Android library that manages your app's cached data with ease.
Android library that manages your app's cached data with ease.

Teller Android library that makes your apps faster. Teller facilitates the downloading, saving, and reading of the cached data of your app. Keep your

Tutorial For openJDK 11 and AGP 7.0.0+ | Tutorial Multi Library Android in 1 Project | Groovy
Tutorial For openJDK 11 and AGP 7.0.0+ | Tutorial Multi Library Android in 1 Project | Groovy

jitpack-library-guide For openJDK 11 and AGP 7.0.0 + Please read every single note for detail Tutorial Click Here Kotlin DSL Click Here Repository for

Makes Google play in app purchase library (BillingClient) into a flowable that can easily be used in compose world

Billy the android Our goal is to make a modern api of BillingClient so that it is easier to use in compose world. This library is still early beta and

Simple Artificial Neural Network java library

SANN Simple Artificial Neural Network java library WIP Creating neural network Variant 1 //create new net (input, hidden, default len, output) Net net

Using Resilience4J, this is a Demo project which uses a Library as background and manages all its requests.

Using Resilience4J, this is a Demo project which uses a Library as background and manages all its requests. This library can rent books online and the usage rate is extremely high. There is a reactive way to access, which is the one normally used, but sometimes, the system needs a bit of help from an old machine running a non-reactive MVC Spring application using JPA. Let's make this in Kotlin and find the best solution!

A library to display pokemon with Shakespearean descriptions

Pokemon Shakespeare SDK A library to display pokemon with Shakespearean descriptions Dependencies Java 11 Retrofit Picasso Material Appcompat Usage Cr

ArduinoJava - A project that uses the JSSC library
ArduinoJava - A project that uses the JSSC library

ArduinoJava este es un proyecto que utiliza la libreria JSSC para connectarse al

Open-source Desktop library to connect Alsat pardakht peyment API
Open-source Desktop library to connect Alsat pardakht peyment API

Open-source Desktop library to connect Alsat pardakht peyment API

Tired of manually setup test data of Kotlin data classes or POJOs? Instantiator creates Instances of any class for you so that you can focus on writing tests instead of spending time and effort to setup test data

Instantiator Tired of manually setup test data of Kotlin data classes or POJOs? Instantiator creates Instances of any class for you so that you can fo

Releases(v0.2.0-alpha)
Owner
editframe
editframe
Ini adalah Launcher SAMP untuk android, ini hanya untuk mengganti nama dan kemungkinan di update lanjutnya akan mendukung download client.

SAMP-Launcher-Android Ini adalah Launcher SAMP untuk android, ini hanya untuk mengganti nama dan kemungkinan di update lanjutnya akan mendukung downlo

Kiril 3 Nov 3, 2022
Src for muffin client, without hwid

Muffin-SRC-BUILDABLE Src for muffin client. Modifications: Fully removed the hwid system, Changed the main menu shader option to be off by default (it

null 28 Dec 2, 2022
****. Use the native and support library variants instead - https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html. An android library that makes it easy to add custom fonts to edittexts and textviews

Add to your project Add this line to your dependencies in build.gradle compile 'in.workarounds.typography:typography:0.0.8' Using the views There are

Workarounds 43 Nov 6, 2021
Starter-Android-Library - Starter Android Library is an Android Project with Modular Architecture.

Starter-Android-Library - Starter Android Library is an Android Project with Modular Architecture.

OpenBytes 1 Feb 18, 2022
ZXing ("Zebra Crossing") barcode scanning library for Java, Android

Project in Maintenance Mode Only The project is in maintenance mode, meaning, changes are driven by contributed patches. Only bug fixes and minor enha

ZXing Project 30.5k Dec 27, 2022
AboutLibraries is a library to offer some information of libraries.

AboutLibraries .. allows you to easily create an used open source libraries fragment/activity within your app. All the library information is automati

Mike Penz 3.1k Jan 3, 2023
An android library for displaying fps from the choreographer and percentage of time with two or more frames dropped

DEPRECATED TinyDancer is deprecated. No more development will be taking place. Check out the Google Android developer documentation for UI performance

Friendly Robot 1.9k Jan 3, 2023
Android Library to help you with your runtime Permissions.

PermissionHelper Android Library to help you with your runtime Permissions. Demo Android M Watch it in action. Pre M Watch it in action. Nexus 6 (M) N

Kosh Sergani 1.2k Dec 14, 2022
Android validation library which helps developer boil down the tedious work to three easy steps.

AwesomeValidation Introduction Implement validation for Android within only 3 steps. Developers should focus on their awesome code, and let the librar

Jing Li 1.1k Dec 17, 2022
A plug and play ;) android library for displaying a "rate this app" dialog

Easy Rating Dialog This lib provides a simple way to display an alert dialog for rating app. Default conditions to show: User opened the app more than

Fernando Martínez 111 Dec 30, 2022