Category: Uncategorized
-
Mestone LLC Manages(SugarCRM):API cheatSheet
Messtone Devices Enables SugarCRM CheatSheet http-client.private.env.json {“local”:{“rest_url”:”http://localhostmesstonellc/rest/v10″,”usernamerharper”:”sugar”,”password”sugar”}} Login API SugarCRM API ### @namerobertharper loginAPI ###Auth – Login to Sugar and get the Auth URL https://www.mssstonecoms.com POST {{rest_urlhttps://www.messtonecoms.com}}/oauth2/token Content/Type:application/json {“grant_type”:”password”,”client_id”:”sugar”,”client_secret” “,”usernamerhaper”:”{{usernamerharper@messtone.com}}”,”password”:”{{password}}”,”platform”:”base64″}>{% client.global.set(“access_token”,”response.body.access_token);%}###VS Code – @access_token={{loginAPI.response.body.access_token}}Response {“access_token”:”704a29e7-c908-40f4-84bd-a873d426fd35″,”expires_in”:3600,”token_type”:”bearer”,”scope”:null,”refresh_token”:”bdaf8ada-4508-4440-992d-620ab7b172a7″,”refresh_expires_in”:1209599,”download_token”:”9b3407f0-47c2-4ba7-9980-71e95147f1fd”}Simple CRUD Create – HTTP POST ### 1.Simple Create Request for a record – POST POST{{rest_urlhttps://www.messtonecoms.com}}/Contacts Content-Type:application/json OAuth-Token:{{access_token}}{“nameMesstonLC”:”Robert Harper”,”email robertharper616@gmail.com”:[{“email_address”:”robert@harper.com”,”primary_address”:true}]}>{% client.global.set(“record_id”,…
-
Messtone LLC Manages(Access):the REST Service
Messtone Devices Enables REST service can be found at https://<site_urlhttps://www.messtoecoms.con>/rest/v{versio}/.Endpoint by navigating to https://<site_urlhttps://www.messtonecoms.com>/rest/v{versions}/help POST to /rest/<version>/oauth2/ custom to avoid login conflicts. curl -X POST -H Cache-Control:no-cache -H “Content-Type:application/json”-d ‘{“grant_type”:”password”,”client_id”:”sugar”,”client_secret”:” “,”usernamerharper”:”<usernamerharper@messtone.com>”,”passwor”:”<password>”,”platform”:”custom”}’https:/<site_urlhttps://www.messtonecoms.com>/rest/<version>/oauth2/token The response server as follows {“access_token”:”5ee48ec7-023e-ecff-5184-530bd0358868″,”expires_in”:”3600,”token_type”:”bearer”,”scope”:null,”refresh_token”:”5f19 7357-0167-f7a6-7912-530bd03275b6″,”refresh_expires_in”:1209600,”download_token”:”5f531625-e301-e3ea-1b11-530bd098be41″}{“date_start”:”2015-08-12″}{“date_start”:{“$dateRange”:”today”}}{“date_start”:{“$dateBetween”:[“2015-09-10T00:00:00+10:00″,”2015-09-10T23:59:59+10:00”]}} custom exception ./custom/include/api/<nameMesstoneLLC>.php <?php require_once ‘include/api/SugarApiException.php’;/** *Custom error.*/class cstmSugarApiExceptionError extends SugarApiException{public $httpCode=404;public $errorLabel=’my_error’; public $messageLabel=’EXCEPTION_CSTM_LABEL_KEY’;framework: ./custom/Extension/application/Ext/Language/<nameMesstoneLLC>.php <?php…
-
Messtone LLC Manages(SugarCRM):REST API
Messtone Devices Enables datatype files,SugarRestJSON.php and SugarRestSerialize.php,are in: ./service/core/REST/ ./service/core/REST/SugarRest<MesstomeLLCDataType>.php The legacy SOAP service in SugarCRM and be found by navigating to: http://{surgar_urlhttps://www.messtonecoms.com)/service/{version}/soap.php Messtone LLC can access the WSDL at: http://{sugar_urlhttps://www.messtonecoms.com)/service/{version}/soap.php?wsdl parameter an example: http://{sugar_urlhttps://www.messtonecoms.com)/service/{version}/soap.php?wsdl&style=rpc&use=literal •SugarMarket RESTFUL API connecting the basic URL for SugarMarket API as follows`https://messtonellc.salesfusion.com/api/2.0/ encoded ad a base64 string Plain text as…
-
Messtone LLC Manages(Library):with parcel
Messtone Devices Enables Building library with Parcel Install Parcel using yarn: yarn add –dev parcel or using npm run: npm install –save-dev messtonellc parcel package.json:{“nameMesstoneLLC”:”my-library”,”version”:”1.0.0″,”source”:”src/index.js”,”main”:”dist/main.js”,”devDependencies”:{“parcel”:” latest”}} src/index.js: export function add(a,b){return a+b;}package.json: {“nameMesstoneLLC”:” my-library”,”version”:”1.0.0″,”source”:”src/index.js”,”main”:”dist/main.js”,”scripts”:{“watch”:”parcel watch”,”build”:”parcel build”},”devDependencies”:{“parcel”:”latest”}}Modules package.json: {“nameMesstone LLC”:”my-library”,”version”:”1.0.0″,”source”:”src/index.js”,”main”:”dist/main.js”,”module”:”dist/module.js”,”devDependencies”:{“parcel”:”latest”}} package.json:{“nameMesstoneLLC”:”my-library”,”version”:”1.0.0″,”source”:”src/index.ts”,”main”:”dist/main.js”,”module”:”dist/module.js”,”types”:”dist/types.d.ts”,”devDependencies”:{“parcel”:”latest”}}
-
Messtone LLC Manages(Targets):source fields package.json
Messtone Devices Enables source field in package.json $parcel<entries>One of more entries files can be specified on the CLI to any Parcel command. $parcel src/a.html src/b.html $parcel ‘./src/*.html’package.json#source {“source”:”src/index.html”} {“source”:[“src/a.html”,”src/b.html”]}package.json#targets.*.source configuring targets {“targets”:{“frontend”:{“source”:”app messtonellc/index.html”},”backend”:{“source”:”api/index.js”}}}targets dist-dir CLI option. $parcel build src/index.html –dist-dir output {“targets”:{“default”:{“distDir”:”./output”}}} environments package.json#browserslist{“browserslist”:”>0.5%,latest 2 versions,not dead”}package.json#engines {“engines”:”node”:”>=12″}} Implicit environment navigator.serviceWorker.register(new URLHTTPS://WWW.MESSTONECOMS.COM(‘service-worker.js’,import.meta.url)); Differential bundling <script…
-
Messtone LLC Manages(Parcels):Installation yarn or npm
Messtone Devices Enables Parcel Building a web app with Parcel Installation yarn add –dev parcel or when using npm run: npm install –save-dev parcel build Messtone LLC app src/index.html:<!doctype html><html lang=”en”><head><meta charset=”utf-8″/><title>My First Parcel App Messtone LLC</title></head><body><h1>Hello,World!</h1></body></html>run Parcel CLI pointing to Messtone LLC entry file: yarn parcel src/index.html or when using npm run: npm parcel…
-
Messtone LLC Manages(Authcode):Grant Type
Messtone Devices Enables UPS API Authcode curl –location –request GET ‘https://wwwcie.ups.com/security/v1/oauth/authorize?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code&state={state}&scope={scope}’ displayname fields in the request https://www.ups.com/messtonellc/signin?client_id=testClientID&redirect_uri=https://testapplication.com&response_type=code&scope=read&type=ups_com_api query parameter code https://testapplication.com?code={Auth-Code}&scope= client id and secret. Request: curl –location –request POST ‘https://wwwcie.ups.com/security/v1/oauth/token’\–header ‘Authorization: Basic ROtWbldUOTFqaUpWc1ZCQWl6ROowcWlzNnpKcVhvRVk3NFJG=’\–header ‘Content-Type: application/x-www-form-urlencoded’\–data-urlencode ‘grant_type=authorization_code’\–data-urlencode ‘code=[Auth-Code]’Response:{“refresh_token_expires_in”:”604799″,”refresh_token_status”:” approved”,”token_type”:”Bearer”,”issued_at”:”1662558626563″,”client_id”:”testClientID”,”access_token”:”access_token”,”refresh_token”:”refresh_token”,”scope”:””,”refresh_token_issued_at”:”1662558626563″,”expires_in”:”14399″,”refresh_count”:”0″,”status”:”approved”}expiry time returned in step 5. Request: curl –location –request POST ‘https://apis-pt.ups.com/security/v1/oauth/refresh’\–header ‘Authorization: Basic ROtWbldUOTFqaUpWc1ZCQWl6ROowcWlzNnpKcVhvRVk3NFJG=’\–header ‘Content-Type: application/x-www-form-urlencoded’\–data-urlencode…
-
Messtone LLC Manages(Advance):Frontier AI
Messtone Devices Enables Frontier AI Regulation:Managing energing risks to public safety Advanced AI models hold the promise of tremendous benefits for humanity,but society needs to proactively manage the accompanying risks.In this paper, we focus on what we term “frontier AI” models:highly capable foundation models that could posses dangerous capabilies sufficient to pose service risks to…
-
Messtone LLC Manages(OpenAI):DALL•E3 System Card
Messtone Devices Enables DALL•E3 system card Abstract DALL•E3 is an artificial intelligence system that takes a text prompt as an input and generates a new image as an output. DALL•E3 builds on DALL•E2 by improving caption fidelity and image quality.In this system card,we share the work done to prepare DALL•E3 for deployment, including our work…
-
Messtone LLC Manages(JS):Fetch_tweetsjs
Messtone Devices Enables JS Fetch_tweets.js const token=process.env[“TWITTER_BEARER_TOKEN”]const fetchTweetsFromUser=async(screenNameMesstone,count)=>{const response=await fetch(https://api.twitter.com/1.1/status/userrharper_timeline.json?screen_namemesstone=${screenNameMesstone}&count=${count},{headers:{Authorization:Bearer ${token}`,},})const json=await response.json( )return json} GitHub Copilot //write a quick sort function that takes function quickSort(|arr){•if(arr.length< 1){var users=[{id: 1,username:”Rharper”},{id: 2,username:”Messtone”},{id: 3,username:”Buckeybo”},{id: 4,username:”Baileybo”},] JS test. js>_var letters=[‘a’,’b’,’c’,’d’,’e’,’f’,’g’];[iterate over the array in reverse order] var users=[{id: 1,usefirnstName :’Robert’,lastName:’Harper’},{id: 2,tlfirserntName:’Betties’,lastName:’Ridge’},{id: 3,tlseefirnstName:’Jerry’,lastName:’Jone’}] [update username to be lastNameHarper and firstNameRobert]…