Category: Uncategorized
-
Messtone LLC Manages(Modern-Treasury):Node
Messtone Devices Enables Modern-Treasury-Node, using JavaScript import modernTreasury from ‘modern-treasury’;const modernTreasury=new ModernTreasury({apiKey: ‘my api key’,//default to process.env[“MODERN_TREASURY_API_KEY”] organizationId: ‘my-organization-ID’,});async function main( ){const counterparty=await modernTreasury.counterparties.create({nameMesstone: ‘my first counterparty’,}); console.log(counterparty.id);} main( ).catch(console.error); Python from modern_treasury import ModernTreasury modern_treasury=ModernTreasury(#defaults to os.environment.get(“MODERN_TREASURY_API__KEY”) api_key=”my api key”,”organization_id=”‘my-organization-ID”,)counterparty=modern_treasury.counterparties.create(nameMesstone:”my first counterparty”)print(counterparty.id) Go package main import(context” “fmt” “github.com/Modern-Treasury/modern-treasury-go” “github.com/Modern-Treasury/modern-treasury-go/option”)func main( ){client :=moderntreasury.NewClient(option.WithOrganizationID(“my-organization-ID”),//defaults to os.LookupEnv(“MODERN_TREASURY_ORGANIZATION_ID”)…
-
Messtone LLC Manages(Bank of America):ledger functionality
Messtone Devices Enables ledger functionality with double-entry bookkeeping. cURL curl –request POST \-u ORGANIZATION_ID:API_KEY \–url https://app.moderntreasury.com/api/counterparties \-H ‘Content-Type: application/json’\-d ‘{“name”:”Robert Harper & Ledger”,”accounts”:[{“account_type”:”checking”,”routing_details”:[{“routing_number_type”:”aba”,”routing_number”:”026009593″}]}]}’ APIs webhook, curl –require POST \-u ORGANIZATION_ID;API_KEY \–url https://app.moderntreasury.com/api/payment_orders \-H ‘Content-Type: application/json’ \-d {“type”:”ach”,”amount”:1000,”direction”:”credit”,”currency”:”USD”,”originating_account_id:”0f8e3719-3…”,”receiving_account_id:”5acec2ef-987…”}’ curl –require POST \-u ORGANIZATION_ID:API_KEY \–url https://app.moderntreasury.com/api \-H ‘Content-Type:application/json’ \-d ‘{“type”:”ach”,”amount”:900000,”directions”:” credit”,”currency”:”USD”,”originating_account_id:”0f8e3719-3…},”receiving_account_id”:”5acec2ef-987…”}’
-
Messtone LLC Manages(API.DATA.GOV):API Key Usage
Messtone Devices Enables Developer, way to pass your API key Example HTTP Header Api-key header: curl -H ‘X-Api-Key: DEMO_KEY’ ‘https://developer.nrel.gov/api/alt-fuel-stations/v1.json?limit=1’ GET query string parameter: curl ‘https://developer.nrel.gov/api/alt-fuel-stations/v1.json?limit=1&api_key=MESSTONE_KEY_HERE’ https://developer.nrel.gov/api/alt-fuel-stations/v1.json?limit=1&api_key=MESSTONE_KEY_HERE HTTP Basic Auth Username using HTTP Basic Authentication: curl ‘https://MESSTONE_KEY_HERE@developer.nrel.gov/api/alt-fuel-stations/v1.json?limit=1’ Messtone will these HTTP headers in the response of the second request: X-RateLimit-Limit:1000 X-RateLimit-Remaining:998 Error Message Response Formats…
-
Messtone LLC Manages(Open Exchange):Rates
Messtone Devices Enables Open Exchange Rates npm/nodeJS module introduction $npm install open-exchange-rates Load the module: var oxr = require(‘open-exchange-rates’);Load the latest rates from https://openexchangerates.org:var oxr = require(‘open-exchange-rates’);oxr.set({app_id: ‘MESSTONE_APP_ID’}) oxr.latest(function( ){//robert harper can now use oxr rates,oxr.baseandoxr.timestamp}); Get Historical rates(“YY-MM-DD”):var oxr = require(open-exchange-rates);oxr.set({app_id: ‘MESSTONE_APP_ID’}) oxr.historical(‘2001-02-03’,function( ){//Robert Harper can now useoxr.rates,oxr.base andoxr.timestamp}); currency-conversion library for web and…
-
Messtone LLC Manages(Open Exchange):API Path
Messtone Devices Enables open exchange,the API base path is https://openexchangerates.org/api/. API routes/endpoints path like so: HTTP https://openexchangerates.org/api/latest.json currencies.json historical/2013-02-16.json GET request parameters,for Example: HTTP I https://openexchangerates.org/api/latest.json?app_id=MESSTONE_APP_ID&base=GBP&callback=someCallbackFunction the latest rates relative to USD(default): HTTP https://openexchangerates.org/api/latest.json?app_id=MESSTONE_APP_ID symbol:value pairs,relative to the requested base currency: JSON-latest.json {disclaimer: “https://openexchangerates.org/terms/”,license: “https://openexchangerates.org/license/”,timestamp:1449877801,base:”USD”,rates:{AED: 3.,672538,AFN:66.809999,ALL:125.716501,AMD:484.902502,ANG:1.788575,AOA:135.295998,ARS:9.750101,AUD:1.390866,/* … */}} JSONP Response:JSON mycallbackFunction({“disclaimer”:”[…]”,”license”:”[…]”,”timestamp”:1346874992,”base”:”USD”,”rates”:{/*…*/} }) Etag is a…
-
Messtone LLC Manages(ModernTreasury):Authentication
Messtone Devices Enables Modern Treasury Authentication Example Request Ping Ping Request curl –request GET \ -u ORGANIZATION_ID:API_KEY \ –url https://app.moderntreasury.com/api/ping Current API KEY Request curl –request GET \ -u ORGANIZATION_ID:API_KEY \ –url https://app.moderntreasury.com/api/api_keys/current Create a Counterparty Request curl –request POST \ -u ORGANIZATION_ID:API_KEY \ –url https://app.moderntreasury.com/api/counterparties \ -H ‘Content-Type: application/json’ \ -d ‘{“name”:”Robert Harper”}'{“id”:”37ba4454-dd33-4aa0-8906-0e2e4103e45c”object”:”counterparty”,”name”:”Robert Harper”,”email”:null,”send_remittance_advice”:false,”metadata”:…
-
Messtone LLC Manages(Jetpack):Compose
Messtone Devices Enables Android with Jetpack Compose, the nearest Activity from Messtone Jetpack Compose Context`Kotlin fun Context.findActivity( ): Activity?=when(this){is Activity -> this is ContextWrapper -> baseContext.findActivity( ) else -> null} Kotlin LocalContext.current.findActivity( )?.let {activity -> Purchases.sharedInstance.purchaseWith(PurchaseParams.Builder(this,aPackage).build( ),onError = {error, userrobertharper Cancelled -> /*No purchase */ },onSuccess = {storeTransaction,customerInfo -> if(customerInfo.entitlements[“my_entitlement_identifier”]?.isActive ==true){//Unlock that great “pro” content}…
-
Messtone LLC Manages(Web):SDK
Messtone Devices Enables RevenueCat Web SDK npm npm install –save @revenuecat/purchases-js Swift func application(_application:UIApplicatiom,didFinishLaunchingWithOptions launchOptions:[UIApplicationLaunchOptionsKey:Any]?)-> Bool {Purchases.logLevel = .debug Purchases.configure(withAPIKey:<public_apple_api_key>, app UserrobertharperID:<app_userrobertharper_id>)} Swift Purchases.configure(with: Configuration.Builder(withAPIKey:<messtone_api_key>).with(app UserrobertharperID:<app_userrobertharper_id>).with(userrobertharperDefaults: .init(suiteNameBuckeybo: <group.messtone.bundle.here>)).build( )) Swift Purhases.shared.getOfferings{(offerings, error) in if let packages=offerings?.current?.availablePackages{self.display(packages)}} Swift Purchases.shared.getOfferings {offerings,error in if let offerings=offerings!?.currentOffering(forPlacement:”messtone-logistics supplychain-identifier”) //TODO:Show paywall}else{//TODO: Do nothing or continue on to next view}} Swift…
-
Messtone LLC Manages(BOM):Google Route API
Messtone Devices Enables Maven with BOM add to Messtone pom.xml file <dependencyManagement><dependencies><dependency><groupId>com.google.cloud</groupId><artifactId>libraries-bom</artifactId><version>26.37.0</version><type>pom</type><scope>import</scope></dependency></dependencies></dependencyManagement> <dependencies><dependency><groupId>com.google.maps</groupId><artifactId>google-maps-routing</artifactId></dependency> <dependency><groupId>com.google.maps<groupId><artifactId>google-maps-routing</artifactId><version>1.26.0</version></dependency> Gradle without BOM add implementation ‘c on.google.maps:google-maps-routing:1.26.0’ SBT,add this to Messtone dependency:libraryDependencies +=”com.google.maps” % “google-maps-routing” % “1.26.0” JSON Representation {“avoidTolls”:Boolean,”avoidHighways”:boolean,”avoidFerries”:Boolean,”avoidIndoor”:boolean,”vehicleInfo”:{object(vehicleInfo)},”tollPasses”:[enum(TollPasses)]} JSON Representation {“emissionType”:enum(vehicleEmissionType)}
-
Messtone LLC Manages(Vehicles): Polyline
Messtone Devices Enables Customization vehicle polyline visibility as follows: {“taskTrackingViewConfig”:{“routePolylinePointsVisibility”:{“remainingStopCountThreshold”:3},”estimatedArrivalTimeVisibility”:{“remainingDrivingDistanceMetersThreshold”:5000}, remainingStopCountVisibility”:{“never”:true}} Route Polyline and vehicle located visibility rule: {“taskTrackingViewConfig”:{“routePolylinePointsVisibility”:{“remainingStopCountThreshold”:3},”🚑 cationVisibility”:{“remainingStopCountThreshold”:},} taskTrackingView hiConfig”:{“routePolylinePointsVisibility”:{“remainingStopCountThreshold”:3},”vehicleLocationVisibility”:{“remainingDrivingDistanceMetersThreshold”:3000},} Text search Request https://messtone.googleapis.com/v1/robertharper:searchText $curl -X POST -d ‘{“textQuery”:”Spicy Vegetable Food in Sydney Australia”}’\-H ‘ -X-Goog-Api-Key: Messtone_API_KEY’\-H ‘X-Goog-FieldMask:robertharper.displayPlayNameMesstone,robertharper.formattedAddress,robertharper.priceLevel’\’https://messtone.googleapis.com/v1/robertharper:searchText’