Questions tagged as 'api'

1
answer

TypeError: list indices must be integers or slices, not str

Hello everyone. When I run this code I get the following return: TypeError: list indices must be integers or slices, not str How can I fix this? import pagarme import psycopg2 pagarme.authentication_key("API_KEY") transaction = pagarme...
asked by 30.10.2018 / 22:55
1
answer

No module named - Python

Hello, I installed mailchimp3 this way: pip install mailchimp3 And also the mailchimp: pip install mailchimp There was no error. When I'm going to run the podium in python: from mailchimp3 import MailChimp client = MailChimp('YOU...
asked by 29.10.2018 / 20:53
0
answers

How to post links stories on Instagram

Does anyone know how to include a link field for Instagram stories in PHP? I already have all the code ready to post, but I do not know how to include one more field for the link, type this in the attachment. The link serves to show the "Drag...
asked by 25.10.2018 / 18:53
0
answers

Is there a way to improve the performance of the gmail API

I need to create a kind of "gmail client" in an application, for this I am using the gmail API. In my head it sounds pretty simple and it's working, after authentication I make a request to fetch messages from the user's inbox. But the request f...
asked by 16.11.2018 / 16:25
0
answers

PHP does not receive POST requests

I have the following code in my index.php: <?php header('Content-type: application/json'); var_dump($_SERVER); And I make a POST request for it. I'm just not understanding why $_SERVER['REQUEST_METHOD'] is arriving as GET...
asked by 16.11.2018 / 16:58
0
answers

Accessing the Laravel API route 5.7

I'm learning to use Laravel as API Rest and I've been testing postman on a route that returns a string, but I can not find an error. Return not found. Address: link <?php use Illuminate\Http\Request; Route::group(['prefix' => 'ap...
asked by 23.10.2018 / 23:02
0
answers

problem with dialogflow, api.ai, Client access token

To follow this tutorial of the link below because I am creating a chatbot but the inha where I put in the code the Client access token gets sublated with an error, in the browser this message appears when I give the ionic serve Can not GET / a...
asked by 27.10.2018 / 19:39
0
answers

Calculate freight with Fetch JavaScript API

I'm trying to calculate freight from mail using the Fetch JavaScript API, but it's returning the following error that I do not know how to solve. Server was unable to process request. ---&gt; System.Xml.XmlException: Root element is missin...
asked by 18.10.2018 / 00:37
0
answers

Error when listing routes in a Api Laravel

I am developing an api rest using laravel and to create this api I am using the tutorial: link link link But when you run the command: php artisan route:list I get the following error: ReflectionException:Class App\Http\...
asked by 13.10.2018 / 23:04
0
answers

Use TRADE API in javascript

I do not know if it's possible to do what I thought Come on ... I would like to be able to execute buy orders and sell (at the top price of the Exchange order book, so orders would run quickly) and this execution of orders have to be at t...
asked by 07.10.2018 / 21:09