Skip to content

Developers

Mostly about Wild Apricot API. Feel free to share examples of your code!

105 results found

  1. Authenticating a Member or Contact (with iOS app)

    Hi - I am writing a custom iOS app using the WA API and a requirement is that members sign into the mobile app with the same credentials that they use to access the WA site via a browser (i.e. email, password)

    The "contacts" API returns the user's email but not the password (which would clearly be a security issue). So the iOS app cannot verify the members credentials itself.

    Is there an API that the iOS app can call to verify the members password? If not, do you have any other suggestions on how this type of member sign…

    0 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  API  ·  Admin →
  2. API V2 authorization "invalid_client" error

    Hi, I'm trying to do v2 authorization (from Java), and getting an invalid client error.

    My setup reads (edited for brevity):

    HttpPost post = new HttpPost(AUTH_URL+"/auth/token");

    post.addHeader("Content-Type","application/x-www-form-urlencoded");

    post.addHeader("Authentication","Basic "+Base64.encodeBase64String("APIKEY:"+API_KEY));

    List <NameValuePair> nvps = new ArrayList <NameValuePair>();

    nvps.add(new BasicNameValuePair("granttype", "clientcredentials"));

    nvps.add(new BasicNameValuePair("scope", "account"));

    post.setEntity(new UrlEncodedFormEntity(nvps));This seems a perfect mirror of the php and c# samples, but in return, I'm getting the remarkably useful:{"error":"invalidclient","errordescription":null,"error_uri":null} Any ideas?Thanks,GeePawHill

    0 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    4 comments  ·  API  ·  Admin →
  3. API PUT produces unexpected result

    As part of our first operational use of the API, I need to update two fields dynamically. For trials, I am using php cUrl, modeled on your sample application. I have no problems with GET, but PUT leaves me baffled.

    Each time I run the script, the target fields are not changed - but the membership of the target contact goes from "active" to "membership not allocated".

    Clearly my code is doing this: but how/why? Can anyone give me a clue as to what is happening?

    Also, my debugging script shows a result JSON containing all the target contact's data.…

    0 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    6 comments  ·  API  ·  Admin →
  4. API Help

    I’ve been following your API v2 guides and snagged the PHP sample listed here:

    https://github.com/WildApricot/ApiSamples/blob/master/PHP/sampleApplication.php

    I was able to properly implement the getAccountDetails function and I created a getContactIdFromEmail function that tweaked the getContactsList function to filter on an email address.

    Now I’m trying to update the FirstName of the Contact that I received. Here’s the code:

    function updatePasswordByContactId($contactId, $email)

    {

    global $waApiClient;

    global $accountUrl;

    $url = $accountUrl . "/Contacts/Contact/{$contactId}";

    $data = array("FirstName" => "Chaz2");

    $result = $waApiClient->makeRequest($url, "PUT", $data);

    return true;

    }

    I analyzed the CURL parameters to see that it is calling the URL:

    https://api.wildapricot.org/v2/Accounts/73659/Contacts/Contact/25710546 ALIDCONTACTID

    0 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    4 comments  ·  API  ·  Admin →
  5. Pass authorization credentials via url

    We use a separate web server but manage user registration through wildapricot. If the user logs into the primary website, can I pass these credentials to wildapricot in the URL? I don't want them to have to log on a second time when they connect.

    Thanks - Mike

    0 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    Resolved  ·  Team Mobile responded

    The recommended way is described in last comment from Dmitry. If you still have some questions, please add a new thread on forum.

1 2 3 4 6 Next →
  • Don't see your idea?

Developers

Categories

Feedback and Knowledge Base