Skip to content

Commit 2da902e

Browse files
authored
Merge pull request #1 from docusign/1.0.0-RC3-v2.1-1.0.0
Version 1.0.0-RC3-v2.1-1.0.0 release
2 parents 86b3617 + ddc0f33 commit 2da902e

File tree

147 files changed

+25906
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+25906
-1
lines changed

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Mobile Tools for Java (J2ME)
2+
.mtj.tmp/
3+
4+
# Package Files #
5+
*.jar
6+
*.war
7+
*.ear
8+
9+
# exclude jar for gradle wrapper
10+
!gradle/wrapper/*.jar
11+
12+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
13+
hs_err_pid*
14+
15+
# build files
16+
**/target
17+
target
18+
.gradle
19+
build
20+
*.class
21+
.classpath
22+
.settings
23+
.project
24+
25+
# others
26+
.idea/
27+
*.iml
28+
.DS_Store

.swagger-codegen-ignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Swagger Codegen Ignore
2+
3+
# Use this file to prevent files from being overwritten by the generator.
4+
# The patterns follow closely to .gitignore or .dockerignore.
5+
6+
# As an example, the C# client generator defines ApiClient.cs.
7+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
8+
#ApiClient.cs
9+
10+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
11+
#foo/*/qux
12+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
13+
14+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
15+
#foo/**/qux
16+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
17+
18+
# You can also negate patterns with an exclamation (!).
19+
# For example, you can ignore all files in a docs folder with the file extension .md:
20+
#docs/*.md
21+
# Then explicitly reverse the ignore rule for a single file:
22+
#!docs/README.md
23+
24+
# Swagger and Git files
25+
.swagger-codegen-ignore
26+
git_push.sh
27+
28+
# Project files
29+
LICENSE
30+
gradle*
31+
build.sbt
32+
.travis.yml

.swagger-codegen/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.4.13-SNAPSHOT

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
sudo: required
2+
dist: trusty
3+
install: true
4+
5+
branches:
6+
only:
7+
- master
8+
9+
language: java
10+
11+
notifications:
12+
email:
13+
recipients:
14+
- devcenter@docusign.com
15+
on_success: never
16+
on_failure: change
17+
18+
jdk:
19+
- oraclejdk11
20+
- oraclejdk12
21+
- oraclejdk13
22+
23+
script: mvn -X clean test
24+
25+
after_failure: "cat /home/travis/build/docusign/docusign-admin-java-client/target/surefire-reports/SdkUnitTests.txt && cat /home/travis/build/docusign/docusign-admin-java-client/target/surefire-reports/TEST-SdkUnitTests.xml"
26+

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# DocuSign Admin Java Client Changelog
2+
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
3+
4+
## [v1.0.0-RC3] - Admin API v2.1-1.0.0 - 2021-08-06
5+
### Changed
6+
- Added support for version v2.1-1.0.0 of the DocuSign undefined API.
7+
- Updated the SDK release version.
8+
### Fixed
9+
- Used String for enum properties instead of Integer
10+
11+
## [v1.0.0-RC2] - Admin API v2.1-1.0.0 - 2021-07-29
12+
### Changed
13+
- Added support for version v2.1-1.0.0 of the DocuSign undefined API.
14+
- Updated the SDK release version.
15+
16+
## [v1.0.0-RC1] - Admin API v2.1-1.0.0 - 2021-07-23
17+
### Added
18+
- First version of Admin API, supports DocuSign Admin

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2016- DocuSign, Inc. (https://www.docusign.com)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 88 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,88 @@
1-
# docusign-admin-java-client
1+
# The Official DocuSign Admin Java Client
2+
3+
[![Build status][travis-image]][travis-url]
4+
[![Maven Central status][maven-image]][maven-url]
5+
6+
## Requirements
7+
8+
- Java 1.9+
9+
- Free [Developer Sandbox](https://go.docusign.com/sandbox/productshot/?elqCampaignId=16531)
10+
11+
## Compatibility
12+
13+
- Java 1.9+
14+
15+
## Note
16+
17+
This open-source SDK is provided for cases where you would like to make additional changes that the SDK does not
18+
provide out-of-the-box. If you simply want to use the SDK with any of the examples shown in the [Developer Center ](https://developers.docusign.com/docs/admin-api), follow the installation instructions below.
19+
20+
## Installation
21+
22+
Note: DocuSign uses **Eclipse** with **Maven** for testing purposes.
23+
24+
### Maven:
25+
26+
1. In Eclipse, create a new project by selecting **File** -> **New** -> **Project**.
27+
2. In the **New Project Wizard** , expand **Maven** , then select **Maven Project.**
28+
3. Leave **Create a simple project** unchecked.
29+
4. Select **Next** , then provide a unique **Group** and **Artifact Id**.
30+
5. In the directory where you've saved your project, open the _pom.xml_ file.
31+
6. In the _pom.xml_ file, locate the **dependencies** node.
32+
7. Add:
33+
34+
```
35+
<dependency>
36+
<groupId>com.docusign</groupId>
37+
<artifactId>docusign-admin-java</artifactId>
38+
<version>1.0.0-RC3</version>
39+
</dependency>
40+
```
41+
42+
8. If your project is still open, restart **Eclipse**.
43+
44+
## Dependencies
45+
46+
This client has the following external dependencies:
47+
48+
- io.swagger:swagger-annotations:jar:1.5.17
49+
- org.glassfish.jersey.core:jersey-client:jar:2.29.1
50+
- org.glassfish.jersey.media:jersey-media-multipart:jar:2.29.1
51+
- org.glassfish.jersey.media:jersey-media-json-jackson:2.29.1
52+
- com.fasterxml.jackson.core:jackson-core:jar:2.10.1
53+
- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.1
54+
- com.fasterxml.jackson.core:jackson-databind:2.10.1
55+
- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.10.1
56+
- com.brsanthu:migbase64:2.2
57+
- junit:junit:jar:4.12
58+
- com.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.2
59+
- com.auth0:java-jwt:3.4.1
60+
- org.bouncycastle:bcprov-jdk15on:1.60
61+
62+
## OAuth Implementations
63+
64+
For details regarding which type of OAuth grant will work best for your DocuSign integration, see the [REST API
65+
Authentication Overview](https://developers.docusign.com/docs/admin-api/admin101/auth/) guide located on the [DocuSign Developer Center](https://developers.docusign.com/).
66+
67+
For security purposes, DocuSign recommends using the Authorization Code Grant flow.
68+
69+
## Support
70+
71+
Log issues against this client through GitHub. We also have an [active developer community on Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
72+
73+
## License
74+
75+
The DocuSign Java Client is licensed under the [MIT License](https://github.com/docusign/docusign-admin-java-client/blob
76+
/master/LICENSE).
77+
78+
79+
[travis-image]: https://img.shields.io/travis/docusign/docusign-admin-java-client.svg?style=flat
80+
[travis-url]: https://travis-ci.org/docusign/docusign-admin-java-client
81+
[maven-image]: https://img.shields.io/maven-central/v/com.docusign/docusign-admin-java.svg?style=flat
82+
[maven-url]: https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.docusign%22
83+
84+
### Additional Resources
85+
* [DocuSign Developer Center](https://developers.docusign.com)
86+
* [DocuSign API on Twitter](https://twitter.com/docusignapi)
87+
* [DocuSign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
88+
* [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)

build.gradle

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
apply plugin: 'idea'
2+
apply plugin: 'eclipse'
3+
4+
group = 'com.docusign'
5+
version = '1.0.0-RC3'
6+
7+
buildscript {
8+
repositories {
9+
jcenter()
10+
}
11+
dependencies {
12+
classpath 'com.android.tools.build:gradle:2.3.+'
13+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
14+
classpath 'ch.raffael.pegdown-doclet:pegdown-doclet:1.3'
15+
}
16+
}
17+
18+
repositories {
19+
jcenter()
20+
}
21+
22+
apply plugin: 'ch.raffael.pegdown-doclet'
23+
24+
if(hasProperty('target') && target == 'android') {
25+
26+
apply plugin: 'com.android.library'
27+
apply plugin: 'com.github.dcendents.android-maven'
28+
29+
android {
30+
compileSdkVersion 25
31+
buildToolsVersion '25.0.2'
32+
defaultConfig {
33+
minSdkVersion 14
34+
targetSdkVersion 25
35+
}
36+
compileOptions {
37+
sourceCompatibility JavaVersion.VERSION_1_7
38+
targetCompatibility JavaVersion.VERSION_1_7
39+
}
40+
41+
// Rename the aar correctly
42+
libraryVariants.all { variant ->
43+
variant.outputs.each { output ->
44+
def outputFile = output.outputFile
45+
if (outputFile != null && outputFile.name.endsWith('.aar')) {
46+
def fileName = "${project.name}-${variant.baseName}-${version}.aar"
47+
output.outputFile = new File(outputFile.parent, fileName)
48+
}
49+
}
50+
}
51+
52+
dependencies {
53+
provided 'javax.annotation:jsr250-api:1.0'
54+
}
55+
}
56+
57+
afterEvaluate {
58+
android.libraryVariants.all { variant ->
59+
def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
60+
task.description = "Create jar artifact for ${variant.name}"
61+
task.dependsOn variant.javaCompile
62+
task.from variant.javaCompile.destinationDir
63+
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
64+
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
65+
artifacts.add('archives', task);
66+
}
67+
}
68+
69+
task sourcesJar(type: Jar) {
70+
from android.sourceSets.main.java.srcDirs
71+
classifier = 'sources'
72+
}
73+
74+
artifacts {
75+
archives sourcesJar
76+
}
77+
78+
} else {
79+
80+
apply plugin: 'java'
81+
apply plugin: 'maven'
82+
83+
sourceCompatibility = JavaVersion.VERSION_1_7
84+
targetCompatibility = JavaVersion.VERSION_1_7
85+
86+
install {
87+
repositories.mavenInstaller {
88+
pom.artifactId = 'docusign-admin-java'
89+
}
90+
}
91+
92+
task execute(type:JavaExec) {
93+
main = System.getProperty('mainClass')
94+
classpath = sourceSets.main.runtimeClasspath
95+
}
96+
97+
task sourcesJar(type: Jar, dependsOn: classes) {
98+
classifier = 'sources'
99+
from sourceSets.main.allSource
100+
}
101+
102+
task javadocJar(type: Jar, dependsOn: javadoc) {
103+
classifier = 'javadoc'
104+
from javadoc.destinationDir
105+
}
106+
107+
artifacts {
108+
archives sourcesJar
109+
archives javadocJar
110+
}
111+
}
112+
113+
task getDeps(type: Copy) {
114+
from sourceSets.main.runtimeClasspath
115+
into 'target/lib'
116+
}
117+
118+
ext {
119+
swagger_annotations_version = "1.5.17"
120+
jackson_version = "2.10.1"
121+
jersey_version = "2.29.1"
122+
junit_version = "4.12"
123+
oltu_version = "1.0.2"
124+
jwt_version = "3.4.1"
125+
bouncy_version = "1.60"
126+
}
127+
128+
dependencies {
129+
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
130+
compile "org.glassfish.jersey.core:jersey-client:$jersey_version"
131+
compile "org.glassfish.jersey.media:jersey-media-multipart:$jersey_version"
132+
compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version"
133+
compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
134+
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
135+
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
136+
compile "com.fasterxml.jackson.datatype:jackson-datatype-joda:$jackson_version"
137+
compile "com.brsanthu:migbase64:2.2"
138+
testCompile "junit:junit:$junit_version"
139+
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
140+
compile "com.auth0:java-jwt:$jwt_version"
141+
compile "org.bouncycastle:bcprov-jdk15on:$bouncy_version"
142+
}
143+

gradle/wrapper/gradle-wrapper.jar

52.4 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Tue May 17 23:08:05 CST 2016
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip

0 commit comments

Comments
 (0)