-
Sin usuario logueado: Todas las peticiones deben ir en POST
-
Para usar el token (usuario logueado): Todas las peticiones deben ir en POST. Para conectarse a la api de orionx es necesario iniciar sesion en el sitio utilizando un navegador como Chrome o Firefox (ingresando el codigo de verificacion del correo) y posteriormente copiar cada uno de los Request Headers que envía este navegador para utilizarlos en las consultas a la API, es decir, deben ser añadidos a las consultas a realizar. Estos headers se pueden encontrar utilizando las herramientas de desarrollador (Developer Tools) en la pestaña Red (o Network), al hacer clic sobre una peticion realizada a la url /graphql con codigo de respuesta
200
al momento de cargar el sitio. (La api queda en api.orionx.io/graphql). -
Para Python se puede usar la siguiente API (se deben incluir todos los headers): https://github.com/itolosa/orionx-api-client
-
Aclaración:
orionx.io
de ahora en adelante a
This file contains hidden or 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
// | |
// main.m | |
// | |
// Created by Ignacio Tolosa on 2/13/16. | |
// Copyright © 2016 PasajesLA. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface MyMathClass : NSObject |
This file contains hidden or 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
#xrandr --output LVDS1 --gamma 1.24:1.36:1.45 --brightness 0.9 | |
ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="pygmalion" | |
export UPDATE_ZSH_DAYS=14 | |
CASE_SENSITIVE="false" | |
DISABLE_AUTO_TITLE="true" | |
COMPLETION_WAITING_DOTS="true" |
This file contains hidden or 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
#include <limits.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <unistd.h> | |
#include <sys/time.h> | |
#include <stdint.h> | |
#include <math.h> | |
#include <string.h> | |
#ifdef __MACH__ |
This file contains hidden or 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
#define ARRMAX 100 | |
void merge(int *A, int i, int j) | |
{ | |
int lk, rk, k; | |
int mid = (i+j)/2; | |
int B[j+1]; | |
lk = i; | |
rk = mid+1; | |
k = i; |
This file contains hidden or 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
<% if policy(@post).update? %> | |
<%= link_to "Edit post", edit_post_path(@post) %> | |
<% end %> |
This file contains hidden or 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
No config file found; using defaults | |
statically included: /Users/nachoman/Documents/gitrepos/infrastructure/playbook/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml | |
statically included: /Users/nachoman/Documents/gitrepos/infrastructure/playbook/roles/jdauphant.nginx/tasks/selinux.yml | |
statically included: /Users/nachoman/Documents/gitrepos/infrastructure/playbook/roles/jdauphant.nginx/tasks/nginx-official-repo.yml | |
statically included: /Users/nachoman/Documents/gitrepos/infrastructure/playbook/roles/jdauphant.nginx/tasks/installation.packages.yml | |
statically included: /Users/nachoman/Documents/gitrepos/infrastructure/playbook/roles/jdauphant.nginx/tasks/ensure-dirs.yml | |
statically included: /Users/nachoman/Documents/gitrepos/infrastructure/playbook/roles/jdauphant.nginx/tasks/remove-defaults.yml | |
statically included: /Users/nachoman/Documents/gitrepos/infrastructure/playbook/roles/jdauphant.nginx/tasks/remove-extras.yml | |
statically included: /Users/nachoman/Documents/gitrepos/infrastructure/playbook/ro |
This file contains hidden or 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 requests | |
import orionx_queries | |
api_url = 'https://api.orionx.io/graphql' | |
# put your login token here | |
login_token = '<token-taken-from-a-sample-request>' | |
# put fingerprint value here | |
fingerprint = '<fingerprint-taken-from-a-sample-request--maybe-optional>' |
This file contains hidden or 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
mainCurrency = { | |
"code": "CHA", | |
"name": "Chaucha", | |
"format": "0,0.00[000000]", | |
"longFormat": "0,0.00000000", | |
"units": 8, | |
"symbol": "C", | |
"round": 0, | |
"wallet": { | |
"_id": "k7ZCcPDdDQsyQCzSm", |
When you get the following on ubuntu:
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.