Type the email and password to find out the token. You would then use HTTP GET, POST, PUT, DELETE and whatever functionality you. Let tempNode = document.createTextNode("Your token is this." + ) ĭocument.querySelector("main").appendChild(div) request to fetch API directly Hence electron-fetch, minimal code for a window.fetch compatible API on Electrons background runtime. When implementing a RESTful service for an app, you would essentially place your MongoDB and your server-side script, the one that handles the REST calls, on an accessible server, if you have it running, the server in your case is probably your machine. ClientRequestimplements the Writable Streaminterface and is therefore an EventEmitter. It is only available as a return value of other methods in the Electron API. Renderer requests Main process requests Request Axios. Process: MainThis class is not exported from the 'electron'module. Let temp = document.createElement("div") Open HTTP Toolkit Pick any Electron executable See, debug & rewrite all its HTTP(S) traffic. There are no other projects in the npm registry using electron-request. Start using electron-request in your project by running npm i electron-request. Latest version: 1.8.1, last published: 8 months ago. "token": "9Mx8PSLUgi1Okxwl8LBfx3Ia8m9bL5PEndcrs8",įunction.js const cityForm = document.querySelector("#weatherForm") ĭocument.addEventListener("DOMContentLoaded", (e) => ) // body data type must match "Content-Type" header Zero-dependency, lightweight http request client for electron or nodejs. Also you need to register with the and get 'Your API Access Key' and paste it in the file Electron-Weather/src/public/functions.jsĪlso, for debugging the electron app, see the link - įinally, to run the electron app,execute the command 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |