Results 1 to 7 of 7

Thread: Mysterious Search

  1. #1

    Mysterious Search

    Hey there, Just Created a Site

    https://mysterious.online

    It mainly focuses on farming wars, Thus It shows Townhall Composition Of Any Clan and Estimated Weight of that particular clan.

    If any clan want to have donation tracker for their clan, They can simply search their clan over our site and in chat box, Type out their Clantag and Clanname and Donation tracker will start in next 24 hours!!

    Site still doesn't have much features, And Open for suggestions

    Note-: Thinking of warlog spidering and Tracking System, But Not Sure, If it is useful!!

  2. #2
    Why making another website if it's a part of akchaun2? Backlinks and spam ?

  3. #3
    Quote Originally Posted by Sakat View Post
    Why making another website if it's a part of akchaun2? Backlinks and spam ?
    Not a part of akchauhan2, Only CWL page has been used from his website, As I am concentrating on another stuff😉

  4. #4
    How do you create a clan search page?

    <?php
    $name = $_GET['name'];
    $token = "NmRmMWM3NGM2MiIsImlh TOKEN dCI6Y2MmFlYyIsInNuoJBPT5w";
    $url = "https://api.clashofclans.com/v1/clans" . urlencode($name);
    $ch = curl_init($url);
    $headr = array();
    $headr[] = "Accept: application/json";
    $headr[] = "Authorization: Bearer ".$token;
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headr);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $res = curl_exec($ch);
    $data= json_decode($res, true);
    curl_close($ch);
    if (isset($data["reason"])) {
    $errormsg = true;
    }
    echo "<pre>";
    print_r($data);
    echo "</pre>";
    ?>
    he give me an error message

    Array
    (
    [reason] => accessDenied.invalidScope
    [message] => Invalid authorization: API key does not allow access to the requested resource.
    )
    that would be nice
    thank you in advance
    Profile Notorious MIND #PVVU92UV | Clan QC LIBRE #PVYVQVG | BK/AQ/GG57/60/22| WWW:http://clashofmind.com

  5. #5

    Join Date
    Sep 2014
    Location
    Digging another tunnel in the data mine
    Posts
    6,325
    Quote Originally Posted by NotoriousMind View Post
    How do you create a clan search page?
    he give me an error message
    Firstly are you sure you got your token right?

    But also what's the actual address that is contacting. I don't use PHP, but it looks like searching for "looters" gives a URL like this:
    Code:
    https://api.clashofclans.com/v1/clanslooters
    But it should be
    Code:
    https://api.clashofclans.com/v1/clans?name=looters
    There must be some command in PHP that adds query parameters as key value pairs?
    For info on CWL see: CWL survival guide and data posts: 1 (stars), 2 (3* rates), 3 (rosters), 4 (start times and other)
    --------------------
    Forum cup organiser. The forum cup discord server is: https://discord.gg/KEUxV2e

  6. #6

    Clantag

    Quote Originally Posted by NotoriousMind View Post
    How do you create a clan search page?


    he give me an error message



    that would be nice
    thank you in advance
    You code looks good to me, Just Add Slash After clans so the full url should be

    https://api.clashofclans.com/v1/clans/

    That's all and it will start working😊

    Once you are done with changes

    Req to link

    https://yourdomain.com/yourpage.php?name=%23yourtag

    It will definitely work😊, Feel free to contact me if you got any issues😊
    Last edited by vipulchawla97; 1 Week Ago at 06:20 AM. Reason: Forgot to mention something

  7. #7
    thank you for your prompt response

    Profile Notorious MIND #PVVU92UV | Clan QC LIBRE #PVYVQVG | BK/AQ/GG57/60/22| WWW:http://clashofmind.com

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •