Este sitio web utiliza cookies para realizar análisis y mediciones de tus visitas. [ Acepto ] [ Más información aquí ].

Come ottenere Social Authority con Follower Wonk API

1. Visita https://followerwonk.com/social-authority, fai login con il tuo account di Twitter e clicca su "Get Access Credentials":

2. Usa questo codice PHP, e sustituisci le lettere in grassetto: 1) access ID, 2) secret key, 3) account di Twitter.

$uri = 'https://api.followerwonk.com/social-authority';

$accessID = 'member-OTFjZTk0YzQtZTVmMC01NDJiLThjZjgtMjhlZTA4MjAzZGE1';

$secretKey = 'zhvfxoxxhkc9xiyobscugquskpvuffaf';

$time = time() + 500;

$signature = urlencode( base64_encode( hash_hmac( "sha1", "{$accessID}\n{$time}",

$secretKey, true ) ) );

$auth = "AccessID={$accessID};Timestamp={$time};Signature={$signature}";

$response = json_decode( file_get_contents( "{$uri}?screen_name=katyperry;{$auth}" ), true );

$social_authority = $response['_embedded'][0]['social_authority'];

echo $social_authority;

Añadir comentario