I have a difficulty that I'm sure is simple for you!
var request = require('request')
var a
var b
request('https://exrates.me/openapi/v1/public/ticker?currency_pair=eth_usd', function (error, response, body) {
a = JSON.parse(body)
b...
I'm working with Laravel on a client project where I want to build a tree structure with the users registered in the system, I found a script that does this, and for that it uses JSONs to get the data.
The framework it works on is as follows:...
I created a Web API that returns a JSON and has a problem similar to the JSONP: status code 200 OK and anyway returns $ .Ajax (... error: function () ...) .
The client consumes the API with Nodes like this:
refresh() {
axios...
I'm working with wikipedia, and I'm having some coding problems. When I add such a link in my browser everything works fine:
link
That goes for the article with the following name:
link
That's the same article but the url is bein...
I need to get the address of a Bing API image:
link
This API returns me a JSON that contains this information I want, but I can not access it:
{
"images": [
{
"startdate": "20181023",
"fullstartdate": "20181023070...
I would like to pass a JSON-style vector as an argument to a script.
Example:
#!/bin/bash
vetor[]=$1
echo ${vetor[*]}
i=0
for nomes in ${vetor[*]}
do
i=$(($i+1))
echo "Nome $i é $nomes"...
I'm generating the information, but only fills the last line of the query executed inside the Array, even though I'm sure it's running all the rows in the foreach. Any ideas how to populate all the arrays with all the information?
<?php
hea...
I'm trying to load data from a table, via ajax, like this:
function buscaFornecedores(id) {
var url = "/Produto/BuscaFornecedor";
$.ajax({
url: url,
type: 'GET',
data: { id: id},
success: function (data)...
I'm trying to get only the return of a variable from this api "buy" that would be the purchase value, but when I try it returns me the whole table, could anyone enlighten me?
$data = json_decode(file_get_contents("https://broker.negociecoins.co...
I'm consuming a Web Service in php, I created a function to compare championships and to return the id of the teams that will play or will play, in another url, I have the names of the teams and the ids of the teams, I'm trying to compare the id...