Questions tagged as 'api'

1
answer

Add marker on map ANDROID

Good evening, I have an application with a map on a swipe tab, but I want the map to mark a point on the map and start at that point. Thank you in advance. JAVA submission: public class Mapa extends Fragment { @Override public View onCr...
asked by 30.07.2014 / 23:45
1
answer

How to safely use passwords inside an Android application?

I'm developing an Android application where I need to authenticate the app user and return some information, but this information will be in a remote database (MySQL), so I developed an API that receives a GET or POST value with a string encrypt...
asked by 17.10.2014 / 22:58
0
answers

Upload file between API's Node.Js

Hello, I have an API on nodejs, and I need to send a file to another API. Does anyone know how I can forward the request? I'm using https.request ( link ) to make the second request, and I get the file in req.files.file .    ...
asked by 27.12.2018 / 14:00
0
answers

Problem with loop (v-for)

Speak Devs! I'm new to this world and I'm catching up with something I think is simple. I'm using the API-Rest of Wordpress and I'm picking up the posts, I want to bring one by ID, theoretically everything's okay, because I already did with a...
asked by 21.12.2018 / 19:48
0
answers

Callback in JS with API call

I'm new to APIs and I'm not able to implement a callback to add the elements of an array, ie make a post. I have a submit button that when clicked should read the array and add all the notes to the corresponding students. I have the array studen...
asked by 13.12.2018 / 23:25
0
answers

Clash Royale API request with pure JS

I'm trying to make a request from the Clash Royale API ( link ) Returns the following error: Access to fetch at 'https://api.clashroyale.com/v1/players/%23C8Q2QR08' from origin 'https://deckroyale.now.sh' has been blocked by CORS policy: Re...
asked by 27.12.2018 / 04:57
0
answers

Enabling in Swagger operations already Authenticated (Net.Framework, not Asp.Net.Core)

I have a project in WebAPI in Net Framework Full (it is not ASPNET Core ), with Swagger already configured and I have already read numerous tutorials on the Internet, but nothing I did worked out. What I need is that...
asked by 10.12.2018 / 13:35
0
answers

Request being Barred by CORS policy

I'm trying to mount my Front End using the Icinga API, but I'm constantly encountering the following error:    Access to XMLHttpRequest at   ' link '   from origin ' link ' has been blocked by CORS policy:   In 'Access-Control-Allow-Origin' h...
asked by 12.12.2018 / 23:34
2
answers

HTTP Status 415 - Unsupported Media Type

Follow the code below: var httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.Add("Accept", "application/json"); httpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {accessToken}"); var result = await httpClient.DeleteA...
asked by 08.12.2018 / 19:09
0
answers

How do I persist on screen saved items in the localStorage of the browser?

Good afternoon guys, I need to create an application that, when clicking a button, retrieves data from an api and renders the screen inside a table. Each row in this table has a button to "favor" the row, which is nothing more than saving your c...
asked by 07.12.2018 / 18:09