Git Product home page Git Product logo

happn-php-sdk's People

Contributors

mfld-fr avatar skipperbent avatar tolgatasci avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

happn-php-sdk's Issues

Photo Upload + Save

my edit happn.php
https://paste.ubuntu.com/p/mXDTgjTg6M/

I've run it, but it's not properly formatted to send to you.
You can check with a more professional structure.
Example run

$happn = new \Pecee\Http\Service\Happn($token);

$happn->bilgi(array('first_name'=>'Şarkı Modu','nickname'=>'Şarkı Modu','workplace'=>'Play Store & APPLE STORE','about'=>'Arkadaşlar Tamamen Ücretsiz Olan Şarkı indirme programını Play Store veya İphone Kullanıyorsanız app store\'den indirebilirsiniz. İnternet olmadan müzik dinlemenizi sağlar. Tamamen ücretsizdir.'));
$happn->upload_photo( array('320-320.0_48bbab70-2ac6-11e8-b7c6-9d2d61cf0e57.jpg','upload.jpg'));
$uyeler = users($happn->getRelation());
$begenmeyen = array();
echo count($uyeler);
foreach($uyeler as $uye){
if($happn->getLike($uye)==0){
$happn->setLike($uye);
}

}
foreach($data as $geo){
$x = $happn->setPosition($geo[0], $geo[1]);
var_dump($x);

sleep(60);



}

function users($gelenler){
$gelen = $gelenler->data;
$uyeler = array();

foreach($gelen as $geldi){
	$uyeler[] = explode('_',$geldi->id)[1];
}
return $uyeler;
}

Set position sometimes fails

Hello,

While testing a script to change periodically the position inside a region of interest, I have a strange behavior of the Happn API : it accepts the POST request the first time, then rejects the second request, and so on... whatever the delay between the requests (up to 15 minutes)...

The problem occurs with both the "rect bissect" and "square spiral" algorithms. I could have suspected a fake position detection on the first, but not on the second that moves the position like a real user (no huge jump in a step).

Any idea ?

"Request forbidden by administrative rules" - Message

Hi,

I try to use your sdk but when I perform :
$happn = new \Pecee\Http\Service\Happn($fbToken)

the response is

403 Forbidden

Request forbidden by administrative rules.

Have you got an idea of what happen ?

Thanks.

Starring the project

Help this project by starring it, including the owner, that seems to have forgotten to do such :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.