Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6827971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:19:43+00:00 2026-05-26T22:19:43+00:00

Im trying to begin to work with a API to call a few bits

  • 0

Im trying to begin to work with a API to call a few bits of information

The documentation for it is quite scarse and the support is quite slim however it is quite good in its way

Ive recently started to learn bits about arrays etc however im not too sure if that would be my hurdle on this specific question

the one part of the API im struggling on is this:

// Get the character object. Will return FALSE if the
// character could not be found or character is frozen.
 $character = $armory->getCharacter('xxxx');

Now im quite stuck on how to find if its “FALSE”

This is an extract from the class file if its any help for you guys:

            function __construct($region, $realm, $character, $ignoreFields = FALSE) {
    if ($ignoreFields != FALSE){
        $this->excludeFields($ignoreFields);
    }
    $this->region = strtolower($region);
    $this->realm = $realm;
    $this->name = $character;
    $jsonConnect = new jsonConnect();
    $this->characterData = $jsonConnect->getCharacter($character, $realm, $region, implode(",",$this->fields));
    if ($this->characterData != FALSE){
        $this->name = $this->characterData['name'];
        $this->setTitles();
        $this->setTalentTreeSelected();
        $this->race = new Races($region);
        $this->class = new Classes($region);
    } else {
        return FALSE;
    }
    return TRUE;
}

https://sourceforge.net/p/wowarmoryapi/home/ is the API if any of you wish to see the full api or command list

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:19:43+00:00Added an answer on May 26, 2026 at 10:19 pm
    if ($character->isValid() === false) {
         //your code that runs if there is no character
    }
    else {
         //your code that runs if everything is fine
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to find a good work around to not being able to use
Trying to create action listeners to perform multiplication tasks. It seems to work, however
So I am trying to work around the lack of stored procedure support in
I'm trying to begin writing scheme in DrRacket. I had DrRacket working for a
Basically I'm trying to replicate YouTube's ability to begin video playback from any part
I am trying to learn PHP classes so I can begin coding more OOP
I begin in GUI with Tkinter with Python. I'm trying to create a graphical
Just before I begin heres a small overview of what I'm trying to achieve
I'm trying to convert string using Var encode:ansistring; begin encode:=UTF8Encode('اختبار'); showmessage(encode); end; It's working
I'm trying to copy a QList in a std::vector this is my code: std::copy(_param_31.listJobs->list_USCOREjobs.begin(),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.