skipperbent / happn-php-sdk Goto Github PK
View Code? Open in Web Editor NEWEasy to use PHP SDK for accessing Happn data.
Easy to use PHP SDK for accessing Happn data.
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;
}
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 ?
Hi,
I try to use your sdk but when I perform :
$happn = new \Pecee\Http\Service\Happn($fbToken)
the response is
Have you got an idea of what happen ?
Thanks.
Help this project by starring it, including the owner, that seems to have forgotten to do such :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.