Developers
Mostly about Wild Apricot API. Feel free to share examples of your code!
105 results found
-
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 votesLatest version of oAuth service allows to authenticate any contact from your contact database. Please follow the instructions here http://help.wildapricot.com/display/DOC/API+V2+authentication#APIV2authentication-UsingWildApricotusercredentials and use scope=auto.
-
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 votesThe problem was caused by invalid header name.
-
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 votesFixed in v5.1.5
-
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 votesThe help has been updated.
-
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 votesThe recommended way is described in last comment from Dmitry. If you still have some questions, please add a new thread on forum.
- Don't see your idea?