Questions tagged as 'api'

1
answer

Laravel - Website and API Authentication [closed]

I am developing a Chat where it can be accessed both by the web and by an application, so I made a laravel project with an api, both the site and the application will be fed through the api that stays on the same server what I am in doubt is abo...
asked by 12.06.2018 / 21:27
1
answer

Apis Rest for e-commerce

I'm trying to set up an e-commerce with a friend and we're thinking of putting together an api rest to access the database and creating a website and an application to consume it. As this is an e-commerce, I would like to know if the Rest APIs s...
asked by 24.05.2018 / 23:59
1
answer

Use return of a method in another method of the same class

I'm working with the The Guardian API, using two methods, search_content() and data_to_csv() , contained in the The Guardian class. The first method is responsible for searching the Guardian database according to the parameters prov...
asked by 26.03.2018 / 21:17
1
answer

How to enable data retrieval via Wordpress API

I wanted to start learning React.js and for this I decided to do a theme written in React for my wordpress, using the 'new' WP API functionality. How do I access the API from my computer? I know I have to authorize the API call, but I do not kno...
asked by 23.04.2018 / 19:31
1
answer

web api, how to login correctly?

I'm developing an application that is a shortened version of a web system, this system was developed in PHP. For the application, I am developing in xamarin forms, however via web api I am trying to make the login screen, but when entering any l...
asked by 14.02.2018 / 20:07
1
answer

What best practice to send authorization via HTTP header [closed]

I'm developing an api rest, I need to pass some data on all requisitions that are basically the required authorization. The data is: Token, unit and an id. What would be the best way to pass this via header. I tried something like this: Author...
asked by 01.02.2018 / 14:13
1
answer

how to handle a json that contains multiple results using python

Hello, I'm doing a python script that takes the name of a movie and returns some data to the user (title, year etc). I'm using api omdbapi, but my question is not with regards to it but how to handle the following json link , when I use the par...
asked by 18.01.2018 / 23:52
1
answer

play login data in the API parameter

In the login I ask the user to put the email and cpf, there I have an api that plays data in a table that I created, then I need to get the parameters cpf and email to put in the api. Ex: http://8080/rest/apiCODCPF=02798477425&EMA...
asked by 14.12.2017 / 16:07
1
answer

What is the problem with this java class that consumes a rest service?

I have a servlet: import br.edu.ifpb.pos.model.Art; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOExcept...
asked by 21.12.2017 / 21:19
1
answer

How to pass parameter in NSarray in url NSURLSessionDownloadTask

I am creating a UITableView to load the bookmarks that are saved in NSUserDefaults, the values are the IDs. ex. 34, 45, 55 ... I am creating the url and passing parameter through an NSMutableArray. (34, 45, 55). this way. NSString * por...
asked by 15.11.2017 / 02:56