The VersionOne JavaScript SDK is an open-source and community supported JavaScript client for the VersionOne API. As an open-sourced and community supported project, the VersionOne JavaScript SDK is not formally supported by VersionOne.
With this said, there are a number of options for getting your questions addressed:
- StackOverflow: For asking questions of the VersionOne Development Community.
- GitHub Issues: For submitting issues that others may try to address.
: For participating in the development of the SDK and chatting with other developers.
In general, StackOverflow is your best option for getting support for the VersionOne JavaScript SDK.
The source code for the VersionOne JavaScript SDK is free and open-source, and we encourage you to improve it by submitting pull requests!
Please note:
- 1.x.x SDK is only supported with a VersionOne instance 15.3 or above.
- 1.x.x SDK currently does not support querying for Meta definitions; if this is something needed, please use any 0.x.x version.
See the repo's Wiki for API usage and additional information.
npm install v1sdk
The VersionOne application does not currently have an option to enable CORS support. As such, CORS is not supported in our hosted environment. You can still use this JavaScript library for server-side applications.
If you have your own on-premise installation, open the VersionOne Web.config
file and add the three entires
after the <add name="VersionOne" ... />
entry:
<httpProtocol>
<customHeaders>
<clear />
<add name="VersionOne" value="Enterprise/13.2.6.73; XP" />
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Headers" value="Content-Type, Authorization" />
</customHeaders>
</httpProtocol>
See more examples.
import $ from 'jquery';
import sdk, {jqueryConnector} from 'v1sdk';
const jqueryConnectedSdk = jqueryConnector($)(sdk);
const v1 = jqueryConnectedSdk('www14.v1host.com', 'v1sdktesting', 443, true)
.withCreds('admin', 'admin'); // usage with username/password
// .withAccessToken('your token'); // usage with access tokens
v1.create('Story', {estimate: 5, status: 'Not Started'})
.then((story) => v1.update(story.oidToken, {estimate: 7}))
.then(v1.query({
from: 'Story',
select: ['Estimate', 'Status'],
where: {
Status: 'Not Started'
}
}))
.then(console.log)
.catch(console.log);
- ACKNOWLEDGEMENTS.md - Acknowledgments of included software and associated licenses
- LICENSE.md - License for source code and redistribution
- CONTRIBUTING.md - Guidelines and information on contributing to this project
Need to bootstrap on VersionOne SDK.JavaScript quickly? VersionOne services brings a wealth of development experience to training and mentoring:
http://www.versionone.com/training/product_training_services/
Not into the chat thing? Get help from the community of VersionOne developers: