Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<!--[if gte mso 9]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
@dinesh1301
dinesh1301 / topmate-api-doc.md
Last active July 13, 2021 12:04
APIs for Topmate

APIs

Request Invite

/request-invite/ API to send request for invite for becoming a topmate. Fields required

  • Name
  • Social URL
  • Email
  • Phone Number (optional) Method: POST

Models

  1. User
    • name
    • mobile Number
    • Profile pic
    • type: shop_owner/reseller
  2. Shop
    • name
    • address (FK)
  • owner (FK to User)
2021-01-05 21:17:26.978 1672-1936/com.bettyapp.betty D/CleverTap:489-965-4W6Z: App Launched not yet processed, re-queuing event {"wzrk_error":{"c":521,"d":"{ type : half-interstitial , bg : #ffffff , tablet : false , close : true , message : { text : Message , color : #434761 , replacements : } , title : { text : Title , color : #434761 , replacements : } , buttons : [ ] , media : { url : https:\/\/db7hsdc8829us.cloudfront.net\/dist\/1604569984\/i\/cfe8816e77274312b7900a8d3561c3c6.jpeg?v=1609857591 , poster : , key : cfe8816e77274312b7900a8d3561c3c6 , content_type : image\/jpeg , processing : false} , isMediaSourceRecommended : false , recommendedText : { text : ,... exceeds the limit of 512 characters. Trimmed"},"evtName":"notification_received","evtData":{"wzrk_acct_id":"489-965-4W6Z","nm":"Touch this notification to open your app and view your in-app notification","nt":"CleverTap","wzrk_inapp":"{ type : half-interstitial , bg : #ffffff , tablet : false , close : true , message : { text : Message , color
2020-12-31 14:29:20.944 7004-8139/com.bettyapp.betty D/CleverTap:489-965-4W6Z: App Launched not yet processed, re-queuing event {"evtName":"challengeListViewed","evtData":{}}after 2s
2020-12-31 14:29:22.973 7004-8139/com.bettyapp.betty D/CleverTap:489-965-4W6Z: Queued event: {"evtName":"challengeListViewed","evtData":{},"s":1609405136,"pg":1,"type":"event","ep":1609405162,"f":false,"lsl":0,"dsync":false}
2020-12-31 14:29:22.975 7004-8139/com.bettyapp.betty D/CleverTap:489-965-4W6Z: Network retry #0
2020-12-31 14:29:22.976 7004-8139/com.bettyapp.betty D/CleverTap:489-965-4W6Z: Failure count is 0. Setting delay frequency to 1s
2020-12-31 14:29:24.019 7004-8139/com.bettyapp.betty D/CleverTap:489-965-4W6Z: Send queue contains 1 items: [{"g":"__ge14fa438c2864757902ee062c9edbbf1","type":"meta","af":{"Build":"59","Version":"0.0.6-beta-1-rc1","OS Version":"10","SDK Version":40000,"Make":"OnePlus","Model":"AC2001","Carrier":"Jio 4G","useIP":false,"OS":"Android","wdt":2.64,"hgt":5.28,"dpi":420,"cc":"in"},"id":"489-965-
@dinesh1301
dinesh1301 / FFMpegVideoTools.kt
Created December 8, 2020 08:35
Using FFMpeg to perform video operations
import android.content.Context
import android.os.Environment
import com.arthenica.mobileffmpeg.Config.RETURN_CODE_SUCCESS
import com.arthenica.mobileffmpeg.FFmpeg
import io.reactivex.Completable
import io.reactivex.Observable
import io.reactivex.Single
import timber.log.Timber
import java.io.File
@dinesh1301
dinesh1301 / colors.xml
Created October 31, 2020 19:00
Colors.xml of the project for debugging
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">@color/dark_sky_blue</color>
<color name="colorPrimaryDark">#3700B3</color>
<color name="colorAccent">#03DAC5</color>
<color name="white">#FFFFFF</color>
<color name="white_50_opacity">#88FFFFFF</color>
<color name="completed_color">#35c759</color>
<color name="wrong_red">#ff6969</color>
<color name="selection_color">#226200EE</color>