This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"printer_ip": "192.168.1.151", | |
"paper_type": "62mmx100mm" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Sample Node.js gist to upload the property user's profile picture | |
// using upload Avatar API | |
// | |
var fs = require("fs"); | |
var request = require("request"); | |
var options = { | |
method: 'PUT', | |
url: 'https://api.sequr.io/v1/property_user/<property_user_id>/avatar', | |
headers: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
const { API } = process.env | |
import * as io from 'socket.io-client' | |
import { connect } from 'react-redux' | |
import { broadcastControllerOnline, broadcastControllerOffline, broadcastNewActivityFound } from 'actions/LiveEvents' | |
import getUserAccountFromState from 'utils/getUserAccountFromState' | |
import cookies from 'cookies-js'; | |
// |