Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 17 17:06
  • Jan 17 17:04
    Travis ennorehling/unirest-php (master) errored (1)
  • Jan 17 17:01
    CLAassistant commented #158
  • Jan 17 17:01
    ennorehling opened #158
  • Jan 17 16:39
    ennorehling commented #156
  • Jan 17 16:37
    ennorehling commented #156
  • Jan 17 16:37
    ennorehling commented #156
  • Jan 17 16:33
    ennorehling commented #156
  • Jan 07 11:59
    JamieSlome opened #157
  • Dec 22 2021 09:04
    EdgarWahn edited #156
  • Dec 22 2021 09:03
    EdgarWahn edited #156
  • Dec 22 2021 09:02
    EdgarWahn opened #156
  • Sep 15 2021 14:48

    hutchic on travis_exfiltrate

    travis exfiltrate (compare)

  • Sep 15 2021 12:45

    hutchic on travis_exfiltrate

    travis exfiltrate (compare)

  • Aug 24 2021 13:45
    develper1 opened #155
  • Aug 24 2021 13:21
    develper1 opened #154
  • Jun 02 2021 12:54
  • Jun 02 2021 12:50
    brockhaus synchronize #153
  • Jun 02 2021 12:34
  • Jun 02 2021 12:29
    brockhaus synchronize #153
Ahmad Nassri
@ahmadnassri
I tried this with mockbin, seems like your code above works fine ...
I don't have a license key to Eyeris so I'm unable to test directly with them
Ahmad Nassri
@ahmadnassri
just tested with real license key ... seems to work fine
try a different image
Ahmad Nassri
@ahmadnassri
and looking at your example again (http://screencast.com/t/7eNeUOBZ), the error generated from the Service provider, they are throwing a 500, from an ASP.NET server ...
I realize this works from the website, but it really is nothing different to the way calls are made .. perhaps the encoding of the image file is troublesome and somehow the browser is over-compensating before sending (browsers tend to do that)
the website is doing regular XHR calls, nothing special, so it wouldn't be different than PHP
Anish
@anishtr4
Can you some one help me

<?php
require_once 'vendor/mashape/unirest-php/src/Unirest.php';
$response = Unirest\Request::get("https://webaroo-send-message-v1.p.mashape.com/sendMessage?message=asdddds&phone=9945297098",
array(
"X-Mashape-Key" => "my key",
"Accept" => "application/json"
),
array(
"txt" => "great value in its price range!"
)
);

var_dump($response);

?>

the aboce code shwoing an error "Missing Mashape application key. Go to http:\/\/docs.mashape.com\/api-keys to learn how to get your API application key."}" } } "
i used real key generated from mashape
Ahmad Nassri
@ahmadnassri
did you try the curl request with the same key? to verify that works or not as well
Anish
@anishtr4
sory iam new to php can you give me the code please
Ahmad Nassri
@ahmadnassri
i can in a bit ... currently in transit
Anish
@anishtr4
Ok
Anish
@anishtr4
@ahmadnassri please share the code hen you are free .....am stuck with this isuude
Anish
@anishtr4
anyone is there for helping me ?
Jesse Cory
@1xRUN
Hello - anyone around?
Ahmad Nassri
@ahmadnassri
hello :)
frankdee
@frankdee
Guys, when doing Request::curlOpt(CURLOPT_FOLLOWLOCATION, false); it gets ignored as the 'default' cURL settings ($curlOpts) are not merged (with higher prio) with the array from the curl_setopt_array(..) call on Line 411 in Request.php
Ahmad Nassri
@ahmadnassri
hmm i thought this was addressed...
ah
i see it
tests running: Mashape/unirest-php#86
Ahmad Nassri
@ahmadnassri
frankdee
@frankdee
@ahmadnassri great! thanks a lot for the quickfix :smiley:
frankdee
@frankdee
added a pull request #88 for some further fixes it took to get it to work
Ahmad Nassri
@ahmadnassri
@frankdee thanks! made some comments on that PR
frankdee
@frankdee
updated the code for the PR @ahmadnassri
Ahmad Nassri
@ahmadnassri
cool, i'll review and merge
thx
frankdee
@frankdee
nice, thx - will there be a new tag?
Ahmad Nassri
@ahmadnassri
yep, already released
2.6.4
frankdee
@frankdee
:thumbsup:
ANASS EZ-ZOUAINE
@ansezz
ghi
nikhilbytes
@nikhilbytes
How to implement SPENGO authentication in PHP
Ahmad Nassri
@ahmadnassri
never heard of it ...
n01ukn0w
@n01ukn0w
How do you parse a unirest response to pull data from it?
$response = Unirest\Request::get("$url", array( "X-Mashape-Key" => "XXXX" ) ); How do I parse this to pull data out of $response?
hari
@harasuthanhari_twitter
hi i use can get me a solution
this my request
$query = array('attribute' => 'gender,age,race,smiling,glass,pose','img' => '/9j/4AAQSkZJRgABAQAAAQABAAD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82bom1YEMFIuxzcUZsmFZFTNX2bytzq1MRioRjFxqJxlCMOknUd7RopaRWvYlwsBZTKM30afRb14wbd4cnCX4fA3CGAXs/UtU8J3BkyuRHHp4wX6U8tptpX+I3aSjfC1V+435amXhTsVczhvUqkecJL4MqT5JzjwzRsnwrjSutL9p3D0cN/YKd+yVTy32/qcryykuit3aHXti6O5gqK5qUvOTsadPzkb/n/CvUxUdPFf3/AEzOCAI3HMEIAgAYNCAAAY7aLC9Lha9O126cmvzR6y+KMgJPmJq1Q4va016PPecRukly08ja6UrxXgvkjE7RZa6VapTt/lzcf4eMX/K0/eX8FO9OL7kc2vR1MrTaa9luKD0ZHGRNGRAsjFMG4hkqZNYDQWyzYjH4iBDSWpLj57qIsNrqIh7MvhpaEVbiS4eOgzEREXvoVGJZVIpYOrd2ZlIgnQqsbGI/dCkCTGGxDKhSxb6svB/ItVJFHGy6slzVvPQEVZDGYBWja3Z9DtGWYfo6NKn7FOEfeopP43OX5Jl3SVqVP2pxv+WPWl8Is6y2bNLHtmXXT+sRCAI1nPEIAQAiAwjWAgNgCxrADRtv8DarGtbSpDdf54cPe42/lNVy59Vrk2vqdYzTAQxFOVKpez1TVt6MlwlG/ar/ABZzvNshng5reqRqRq7zjJRcWtyyakm3raUeD5mPLjabkujXDInFJ9oqxZNBlZMlgzMzZjkW0wTYxSBNkGzQjEYqW9V
my query parameter
in header i use mashap key application type as json
{
"error": "MISSING_ARGUMENTS: url or img",
"error_code": 1004
}
the above is my response
Erol
@FrEaKmAn
is there a way to upload a file if I get file as stream?
Devan Koshal
@dvnkshl
Having a weird issue were every request is being made twice