Developers
Mostly about Wild Apricot API. Feel free to share examples of your code!
104 results found
-
PUT method to update contact is failing
I am trying to update the contact details.
this.data =JSON.parse(data);
var contactId = this.data.Id;
let userurl = 'https://api.wildapricot.org/v2/Accounts/' + accountid + '/Contacts/' +contactId;console.log("efore put call", userDetails); console.log("efore put call stringified", JSON.stringify(userDetails)); let bodyString = JSON.stringify(userDetails); this.http.put(userurl, bodyString, {headers:headers}) .map(res => <User>(res.json())) .subscribe(userAuth => { // we've got back the raw data, now generate the core schedule data // and save the data for later reference this.userData = userAuth; console.log('get user details', userAuth); resolve(this.userData); }, err => { console.log("error", err); }); });
that is my put code.. as your can see I am sending the body text as…
1 vote -
Change the batch interface to support the POST method
I have been trying to call the batch API interface from Google Apps Script. Apps Script correctly realizes that BATCH is not a valid HTTP method and prevents me from submitting the request. There must also be many other HTTP client libraries that prevent this.
The solution is simple - just extend the batch API to also allow a request submitted with the POST method.
1 voteIt was resolved in release 5.9.2
-
Pre-flight not handled for API V2
I am trying to get data for my app using wild apricot.Im using hybrid app. Currently when I am trying to access
events.https://api.wildapricot.org/v2/Accounts/209675/Events
This is my url.
Then I have to send authorization as header in the GET request.
But whenever I send authorization as header in GET request. It comes as a pre-flight and first OPTIONS request is sent.But the server is not handling OPTIONS request. How do I get over this scenario.
Request URL:https://api.wildapricot.org/v2/Accounts/209675/Events
Request Method:OPTIONS
Status Code:405 Method Not Allowed
Remote Address:96.43.192.222:443
Response Headers
view source
Cache-Control:no-cache
Connection:close
Content-Length:76
Content-Type:application/json; charset=utf-8
Date:Tue, 02 Aug…1 voteThat happens because your try to access API from web browser (possibly Ionic builder). The web app makes cross origin requests, which are not supported in API.
There is no problem to access API from mobile app, our own mobile app for admins works exactly this way. However if you try to access API from ionic builder, then you will face CORS error. Here is a detailed explanation of reasons and possible workaround: blog.ionic.io/handling-cors-issues-in-ionic.
Please let me know if the tutorial helps or not.
Dmitry
-
How to access each of the options and whole structure of custom field in event
Hi,
I am creating a client for wild apricot. So to facilitate event registration the form has to be created in mobile app. To do the same the custom event fields has to be shown in the mobile client. So when I try to access the event Registration or event eventdetails using API.{
"FieldName": "Testing field",
"Value": [
{
"Id": 8815648,
"Label": "New Item 1"
}
]
}Currently I am using https://api.wildapricot.org/v2/Accounts/209675/EventRegistrations?eventId=2297435
also tried with
https://api.wildapricot.org/v2/Accounts/209675/EventRegistrations/16216925I get the Field and label for it. but there is a field tyepe and list of values assocaited with it. how…
1 voteIf you need a list of field descriptions, you should get event by id. The data you need are located in Event.Details.EventRegistrationFields
-
API cannot change email settings?
I've been trying for a while now to get the fields in a contact called:
Email delivery disabled
Receiving emails disabledto change using the API update contact call. I can change other fields, these two just refuse to change. Is there a trick to this, or is this another one of those 'you can't do it' features?
1 voteAccording to contact fields description both of these fields are read only.
You can get contact fields metadata by calling https://api.wildapricot.org/v2/accounts/XXX/ContactFields/ The result is a collection of fields descriptions. Each record has a parameter “IsEditable”, so you can check if any specific field can be modified with API or not. -
Attempting to use mod_auth_openidc to authenticate with SSO, OAuth2 standards?
I'm attempting to configure our third party website using Apache and modauthopenidc to invoke the SSO authentication endpoints on our WildApricot website.
I've gotten as far as manually assembling a correct authentication request URL:
That shows me a login dialog as expected... However, when trying to use mod-auth-openidc to generate the authorization URL, it doesn't allow the requesttype of "authorizationcode". It only lets me set the request type to "code", which seems to break the authentication page fetch on the WA end.
This would seem to be an issue with Oauth2 'standards'. It would…
1 voteIssue fixed, oauth should work with mod_auth_openidc as expected.
-
Server error when I am trying to get a token using POSTMAN
I am trying to follow the apikey authentication and i am using POSTMAN to test this. Below is my request but I am getting 500 server error.
POST /auth/token HTTP/1.1
Host: oauth.wildapricot.org
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Cache-Control: no-cache
Postman-Token: b0e747fe-861b-954e-0f70-011fc0f94d88
Content-Type: application/x-www-form-urlencodedalso I tried with scope and grant type
POST /auth/token?granttype=clientcredentials&scope=auto HTTP/1.1
Host: oauth.wildapricot.org
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Cache-Control: no-cache
Postman-Token: ee9d3021-4238-a403-e028-6d7ef4aba5ee
Content-Type: application/x-www-form-urlencodedResponse:
{
"Message": "An internal error has occured. Please contact Wild Apricot support.\r\n Request ID:0531c255bfc84e1484fefe00d34ab82a."
}1 vote -
Retrieve event organizer details
I would like to be able to retrieve the event organizer information (name and email) via the Event API calls.
Our event organizers are also our featured speakers. We would like to be able to create a list of event titles, dates and times, and speakers.1 voteWe added it in 5.9 release
https://help.wildapricot.com/display/DOC/Events+API+V2+call -
Finger print reader Integration
Dear Support Team,
Will it be possible to somehow integrate the Integrated Biometrics product below into the Wild Apricot:
http://www.integratedbiometrics.com/products/curve/I want to use it to register contacts (members / clients / attendees) when arriving at an event (or meeting).
This will speed up registration a lot.On the first contact (new client) with the person, the detailed information (name and other attributes) of the person will be captured together with a finger print (will be later used for repeated registration).
When performing registration the next time, as the contact information will be already available on the system, the contact…
1 vote -
Single Sign On - second step Authenticating the user
Any one please help me to complete this authenticating the user using the authentication code. i got the following error
URL:
https://oauth.wildapricot.org/auth/tokengranttype=authorizationcode&authorizationcode=5183ab5986ee53e6fb850a7f44c765d4&clientid=xxxx&redirecturi=http://localhost/wapi/&scope=contactsme&state=local
Array
(
[0] => Authorization: Basic bXlpbDEzaWhtZzp2MGhqZnAyNW4xZmtteTJjaj2w=
[1] => Content-Type: application/x-www-form-urlencoded
)
{"Message":"An internal error has occured. Please contact Wild Apricot support.\r\n Request ID:530451cb095c4c6895389a077ac9016d."}1 voteResolved, see last comment.
-
Customer and member creation from another system.
We are planning to create Customer and member information from another system into WildApricot. Our Chapter membership uses WildApricot and we would like to automate chapter membership information from our system to WA database through web services call. Has anyone implemented similar work or recommendation.
Thanks.
Sundar
1 voteHere is an open source plugin, which helps integrate Wild Apricot with Joomla https://github.com/psike73/joomla_waauth
-
Accessing member ID from a 3rd party website
Hi
Not sure if this is possible
I am designing a 3rd party website and I would like to offer our WA members the ability to login using the WA SSO and access a restricted section within the 3rd party. Although I can achieve this I would like WA to tell me who the member who logged in was (e.g. by telling me the memberID)
Is there a way to do this?
So far I do the following based http://help.wildapricot.com/display/DOC/Single+sign-on+service
1. I get the SSO working and WA returns state and code- I then send $data["granttype"]="authorizationcode"; $data["authorizationcode"]=$…
1 voteEverything works, see discussion for details.
-
Bug in example PHP application
Hi,
if you're using the provided example PHP application there's a small bug that can impact authentication.In function getAuthTokenByAdminCredentials
CHANGE:
$data = sprintf("grant_type=%s&username=%s&password=%s&scope=%s", 'password', $login, $password, $this->tokenScope);
TO:
$data = sprintf("grant_type=%s&username=%s&password=%s&scope=%s", 'password', urlencode($login), urlencode($password), urlencode($this->tokenScope));
We had a user unable to login and found that a reserved character in the password meant the string was being incorrectly parsed. urlencode() escapes special characters so they are passed through correctly.
Regards,
Russell.1 voteHi Russell,
Thanks for contribution. PHP sample on github is updated.
-
Web link with embedded user data
We are migrating our members to WA and I have a big issue. Our members are granted access to an external database as part of their membership to search legal information online. Members log into our portal and click on a link that has their own AccountID, First Name, Last Name and email address embedded. Is there a way to accomplish this in WA?
Here is an example of the code we use now on our existing ASP site to generate the individual links:
using System;
using System.Web.UI.WebControls;
public partial class membersonlysomedatabase : System.Web.UI.Page
{
protected string endurl;
protected…1 voteAt the end to January we are launching a feature, which allows JS code to access public API. You will be able to get from API information about current user and then build a link.
Here is
- information about initial feature request: https://forums.wildapricot.com/forums/309658-developers/suggestions/8828014-javascript-access-to-contact-member-event-data
- current version of API documentation https://help.wildapricot.com/display/DOC/API+Version+2 . It wil be updated when the feature is launched.
-
I would like to be able to create a payment without creating an invoice: Just "this contact paid this amount on this date".
I would like to be able to create a payment without creating an invoice or associating with an event: Just "this contact paid this amount on this date".
I believe that can be done from the WA web site, but I have batch payments already made via an external (private) system, and I want to upload them into WildApricot.
1 voteYou can skip Invoices in json structure. Ex:
POST https://api.wildapricot.org/v2/accounts/ACCOUNT_ID/payments
{
“Value”: 12345,
“Contact”:{ “Id”: 30142021 },
“Tender”:{ “Id”: 1086628 },
“Comment”: “sample payment without invoices”
}This will create payment without invoices.
-
API2 Export Invoices to Excel through VBA
I would like to export our invoices to Excel trough API, as I need country, TAX info, deleted invoices to do a proper administration.
Can someone send me an example how to connect to WA through VBA using API v2?
1 vote -
PHP Code - Creating a New Payment for Specific Invoice (API V2)
I want to create a new payment for specific invoice by using PHP client app.
Anybody have done PHP client through Wild Apricot API v2. Please share if you have done any PHP code sample which shows Creating a New Payment for Specific Invoice, it will be great help.
1 voteHi,
JSON structure for creating payment is really simple: https://gist.github.com/DmitriySmirnov/002e7d502bb15005b5f3
If you use php client from https://github.com/WildApricot/ApiSamples/blob/master/PHP/sampleApplication.php
then result code will look like:
https://gist.github.com/DmitriySmirnov/0768302795e76712fa25FYI: I’m not a PHP developer so the code may contain errors.
-
API - Implement CORS for Cross-Domain API requests
Currently the API does not support cross-domain requests which makes it impossible to call the API from within WA or any other site. The whole Idea of API's and web services is to be able to fetch data from other sites to use in you JavaScript code.
I can only get access to the API if I disable cross-domain security in IE. Other browsers are more difficult.
CORS is a web standard that was developed to handle cross-domain requests. It should be fairly simple to adjust your web server to handle CORS and pre-flighting
1 voteCORS is not implemented, but it is possible to access public API from JS hosted on yourdomain.wildapricot.org. Please refer to http://help.wildapricot.com/display/DOC/Authenticating+API+access+from+a+Wild+Apricot+site+page for more details.
-
POS
http://www.revenuquebec.ca/en/entreprises/obligationsparticulieres/restauration/mev/default.aspx
We have to install an automatic tax recorder for revenue quebec since we include alcohol sales at our events.
Do you know if WildApricot would be able to submit taxes directly to the recorder, have you seen any successful pos (cash register) solutions implemented with wild apricot through the API?
Thank You
Carson
1 voteWildApricot is not able to submit taxes information to the recorder. And I don’t know about POS solution, which uses Wild Apricot.
-
oAuth work with Discourse SSO
I'm trying to understand if Wild Apricot's SSO implementation will work out of the box with Discourse's oAuth SSO implementation, or if I need to develop a plugin for Discourse to authenticate with WA.
Discourse, a discussion platform, provides a built-in oAuth SSO client. There are screenshots of the configuration here - https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045
On Discourse, for the SSO URL, I have put in what I believe is the correct URL for the authorized application that I have made in our WA account:
https://abea.bike/sys/login/OAuthLogin?client_id=<WA CLIENT ID>&redirecturi=http%3A%2F%2Fdiscourse.cyclingsavvy.bike%2F&scope=contactsme&responsetype=authorizationcode&claimedaccountid=<WA ACCOUNT ID>
Where <WA CLIENT ID> is configured…
1 voteThere is an open source plugin for Discource.
https://github.com/LeoMcA/discourse-wildapricot-authGreat thanks to Eliot for sharing it.
The plugin is developed by third party and not maintained by Wild Apricot team.
- Don't see your idea?