Questions tagged as 'api'

1
answer

Consume API with PHP

I have api address of a software which I need to create a PHP form and fetch this data. URL Ex: " link " With the URL, the following example is provided: Object: Product GET /api/produto/listar Parameters: ? product = 1 & color =...
asked by 06.12.2018 / 11:01
1
answer

Problems with angular requests

Good afternoon, I'm starting a new stage and a few days later I'm stuck on a task that I can not understand the failure, I must make a registration form that communicates with an API already done and after many attempts the error persists: "Can...
asked by 04.12.2018 / 16:15
0
answers

Doubt with subdomain express vhost

How can I have vhost with extension? for example HowItried:app.use(vhost('api.*/portfolio',portfolioRouter));app.use(vhost('api.**/portfolio',portfolioRouter));Butitdidnotwork.Iwonderifthisispossible,andifthat'show?TheAPIisworkingcorrectly.I...
asked by 03.12.2018 / 18:28
0
answers

When I try to login to my application that uses an API in Laravel the following error appears:

LoginMethodloginUsuario(){this.usuariosProvider.loginUsuario(this.usuario).subscribe(res=>{if(res){if(res.token){console.log(res);this.usuariosProvider.setStorage("usuario",res); this.ativaMenuLogin(); this.cancelar();...
asked by 29.11.2018 / 04:07
1
answer

Shodan implementation (Api) No return result

Good afternoon. So guys are doing a test with shodan to implement in another program. But when I type $: python python_test.py.py + ip or query It does not display the result and returns to the terminal without error as well. How can I arrange t...
asked by 23.11.2018 / 17:26
0
answers

pass array as parameter to query query, express

Well, I would like to basically pass an array through the url to the red.params of express.router, I tried to do it in some ways: router.get('/:[ids]?', function (req, res, next) { portfolioModel.deleteArray(req.params.array, function...
asked by 10.12.2018 / 18:28
0
answers

Azure Billing Rest Invoices download

My goal is to download csv automatically. I have an azure account and am trying to consume their billing api. but I have already given all permissions with respect to the financial and even then the error continues. I'm making this call...
asked by 20.11.2018 / 19:36
0
answers

Property does not exist on this collection instance

What I researched might be something related to having 1:N , hasMany > belongsTo relationship, but I do not know what I have to do. I'm developing a API in Laravel 5.5 and I have some tables that relate when the...
asked by 20.11.2018 / 12:20
0
answers

Mailchimp API - list entry

I have a form that its action is a PHP file. However, I need the form data to be inserted into a MailChimp list and also send an email to the subscriber via PHPMailer. PhpMailer is in full operation, that is, when I click the download button...
asked by 27.11.2018 / 12:35
0
answers

error in the pattern when uploading the dropbox via django admin

WhenItrytouploadanimageviaDjangoAdmintosaveitonthemediaanduploadittothedropboxaccordingtothesettings: link MEDIA_URL = '/ media /' MEDIA_ROOT = os.path.join (BASE_DIR, 'media') STATIC_URL = '/ static /' STATIC_ROOT = os.path.join...
asked by 27.11.2018 / 14:23