Questions tagged as 'api'

1
answer

Which method to send email in Python?

for row in values: # Separei os valores da data em 3 variaveis temp. year = int(row[0][6:10]) moth = int(row[0][0:2]) day = int(row[0][3:5]) if day == d1.day and moth == d1.month and year == d1.year:...
asked by 09.06.2017 / 15:40
1
answer

Knowing the city from the zip code

I would like to know if someone has solved a similar problem: in my system has a form and a zip field, when the user type the zip he wanted to know the region of his if it is north, west, east and etc .... vi that in the post office does not inf...
asked by 04.06.2017 / 00:04
1
answer

Redirect URL in NodeJs

I'm trying to redirect my login to a new site after the user validation function. After the redirection to the url in the browse is from the url where the login was: link " link , should be just that part: link request('http://54.93.15...
asked by 03.06.2017 / 01:35
0
answers

How to check in the API if a user who is being searched in the database is the user that is logged in?

I am using Laravel and I need to create an attribute (is_me) in the model to know if the current profile belongs to the user that is logged in; I was doing as below, but now that I'm using API I can no longer use Auth :: user () public func...
asked by 30.05.2017 / 21:27
0
answers

Image for base64

I would like to convert an image to base64, but it is not working properly, there is no error in logcat, could anyone help me? Code: private void galleryIntent() { Intent intent = new Intent(); intent.setType("image/*"); intent...
asked by 23.05.2017 / 19:30
1
answer

Error fetching API data

I can not get the data of a certain API can anyone help me? I've tried it in several ways. the error you are giving is:    Notice: Trying to get property of non-object in C: \ xampp \ htdocs \ test \ index.php on line 7 <?php $api=file_...
asked by 18.05.2017 / 23:46
1
answer

Post via Json getstring error

I have a code that should do a "Post" via json, but edittext is not converting to String, and there is no error in logcat .. Anyone have an idea of the error? It must be stupid, I apologize, but I'm new on android. public class PostTeste exten...
asked by 12.05.2017 / 19:49
0
answers

Upload JPEG via JSON

I have a code that takes a photo of the gallery or causes me to take a picture and would like help sending this image via JSON to my API, but I have no idea how to do it. My code: @Override public void onRequestPermissionsResult(int request...
asked by 19.05.2017 / 20:18
2
answers

Android String Post http

I have a code that I would like to do a "Post" of the email string after clicking the button, the code of the post apparently is correct, but the button is not working .. The logcat does not return any error..this is my code: public class Post...
asked by 11.05.2017 / 23:04
1
answer

Send parameters via post json android

   I need to send the string username via post after the button1 is clicked, my code has no error in the monitor, it simply does not send anything to the bank ... This is my code: public class PostTeste extends AppCompatActivity { priva...
asked by 11.05.2017 / 21:50