Skip to content

Instantly share code, notes, and snippets.

👓
Doing Android stuff

Mitch Tabian mitchtabian

👓
Doing Android stuff
Block or report user

Report or block mitchtabian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View MainActivity.kt
package com.codingwithmitch.coroutineexamples
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
import kotlinx.coroutines.*
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.Dispatchers.Main
class MainActivity : AppCompatActivity() {
View MainActivity.kt
package com.codingwithmitch.coroutineexamples
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
import kotlinx.coroutines.*
class MainActivity : AppCompatActivity() {
@mitchtabian
mitchtabian / update_success.json
Created Jul 16, 2019
https://<your-domain>/api/account/properties/update
View update_success.json
{
"response": "Account update success"
}
@mitchtabian
mitchtabian / account_properties.json
Last active Aug 3, 2019
https://<your-domain>/api/account/properties
View account_properties.json
{
"pk": 1,
"email": "mitch@tabian.ca",
"username": "mitch"
}
@mitchtabian
mitchtabian / detail_blog.json
Created Jul 9, 2019
https://<your-domain>/api/blog/<slug>/
View detail_blog.json
{
"title": "I'm switching to Kotlin",
"body": "Kotlin fdskgfdg dfgdfg dgdfgd fgdf\nfdg dfg dfgd",
"image": "/media/blog/1/Im_switching_to_Kotlin-Im_switching_to_Kotlin_eXPxce7.png",
"date_updated": "2019-07-09T16:02:19.170321Z",
"username": "mitch"
}
@mitchtabian
mitchtabian / update_blog.json
Last active Sep 10, 2019
https://<your-domain>/api/blog/<slug>/update
View update_blog.json
{
"response": "updated",
"pk": 45,
"title": "Mount Rainier",
"body": "Here is a picture of Mount Rainier.",
"slug": "mitch-fuvhvhvh",
"date_updated": "2019-09-10T16:45:10.866983Z",
"image": "https://nyc3.digitaloceanspaces.com/open-api-spaces/open-api-static/blog/1/Mount_Rainier-mt_rainier.jpg",
"username": "mitch"
}
@mitchtabian
mitchtabian / delete_blog.json
Created Jul 9, 2019
https://<your-domain>/api/blog/<slug>/delete
View delete_blog.json
{
"response": "deleted"
}
@mitchtabian
mitchtabian / create_blog.json
Last active Sep 10, 2019
https://<your-domain>/api/blog/create
View create_blog.json
{
"response": "created",
"pk": 48,
"title": "Arizona Desert",
"body": "This is an image of the Arizona desert. It's very red. I don't know what else to say about it.",
"slug": "mitch-arizona-desert",
"date_updated": "2019-09-10T16:49:12.583876Z",
"image": "https://nyc3.digitaloceanspaces.com/open-api-spaces/open-api-static/blog/1/Arizona_Desert-arizona_dessert.jpg",
"username": "mitch"
}
View blog_list.json
{
"count": 15,
"next": "https://open-api.xyz/api/blog/list?page=2",
"previous": null,
"results": [
{
"pk": 13,
"title": "Time to Build a Kotlin App!",
"slug": "mitch-the-rest-api-is-complete",
"body": "The REST API course is complete. You can find the videos here: https://codingwithmitch.com/courses/build-a-rest-api/.\r\n\r\nNext I'll be building an app to interact with the REST API. If you don't want to build your own REST API, you can use the one I made here at open-api.xyz: https://open-api.xyz/api/\r\n\r\nTechnologies we'll be using: Kotlin, MVVM Architecture, Dagger2, Retrofit2, Coroutines, Room Persistence, REST API, Token Authentication",
View login.json
{
"response": "Successfully authenticated.",
"pk": 1,
"email": "mitch@tabian.ca",
"token": "0333ec24e30766df2e1e413874664723d3c62172"
}
You can’t perform that action at this time.