Questions tagged as 'api'

0
answers

Android Error: Apache HttpClient does not exist

Now it is mandatory for google to have in the code that update where the version is changed of targetSdkVersion to apply the latest APIs in the applications. I changed the values from SdkVersion to 26 as recommended by google...
asked by 01.08.2018 / 15:16
0
answers

Implementing Skype to the site

I'm testing the skype WebControl feature, where it's possible to add a skype chat window to the site. But I have some errors that I can not solve. The window itself appears, but there are errors in the console and I can not send the messages....
asked by 19.06.2018 / 20:05
2
answers

How can I ensure that my API will only use the features I want it to use?

Hello, I have the following question. I have an application that will be used by several companies, each company will have a number of employees (only users of the company) and I have regular users (business customers). The system relationshi...
asked by 17.06.2018 / 18:28
2
answers

Error setting up Passport in Laravel

I have a laravel API and in it, I need to authenticate access requests. So I used Passport Laravel, but according to the API return, there is some definition that I did not report in my code. In my route, I type the middleware type: Route::...
asked by 17.06.2018 / 17:52
0
answers

Endpoint accepting object and array of objects

This is a question that refers more to good practice. The scenario is that I have 2 endpoints to receive a given record. In the first I receive the object and register one per requisition. In the second I get an array of this object, iterate...
asked by 06.06.2018 / 14:38
1
answer

Restful API with NodeJS and Mysql with Multiple Columns (I want to return json in levels)

Alright. Can anyone help me with a question of Angular, or API with Node.js? I have a mysql api with Node.js with inner join in 2 tables, but of course mysql returns everything in a single array, but I think it is more correct and feasible to...
asked by 11.06.2018 / 19:52
1
answer

API PagSeguro how to get payment status by ID

Hello, I searched a lot about this by looking at the git of PagSeguro but I could not understand, what I want is the following mysite.com/check.php?id=ID-DA-TRANSLATION-?token=MEU-TOKEN?email=MEU-EMAIL Type if there is payment with id of t...
asked by 27.06.2018 / 17:40
0
answers

When I receive notification of PagSeguro with payment status, it gives 500 error when pushing in my API

The code below is the PUSH created so that PAGSeguro sends me notification of the status of my payment. But the error returned is 500, and in their forum there are no answers so far. Anyone who has ever had this problem can help me? @PostMappi...
asked by 15.05.2018 / 21:07
1
answer

How to check JWT on each request

I am doing a login system in php and trying to authorize with JWT . I am not using any library, I made a class called Jwt that I pass the pars and it generates the Token and also passes the token and returns me an object with...
asked by 11.05.2018 / 18:23
1
answer

Authentication on laravel API routes

I'm running some tests on building an API with Laravel. All the URLs of the API are currently accessing without authentication. I am trying to allow after user authentication. In routes / api.php I'm defining: <?php use Illuminate...
asked by 11.06.2018 / 01:56