You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-9Lines changed: 24 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,30 +39,45 @@ For details regarding which type of OAuth grant will work best for your DocuSign
39
39
For security purposes, DocuSign recommends using the [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) flow.
40
40
41
41
## Running tests:
42
+
Pre-conditions:
43
+
1. Make sure ruby is installed or install it fallowing the [instructions](https://www.ruby-lang.org/en/documentation/installation/)
44
+
2. Login with your DocuSign account on https://appdemo.docusign.com.
45
+
3. Open Apps and Keys section in Settings and press Add App and Integration Key button.
46
+
4. Enter App name, add secret key, generate RSA key and press Save button, add `https://developers.docusign.com/` to Redirect URIs.
47
+
5. Create new template on https://appdemo.docusign.com/templates page and save its ID.
48
+
49
+
After complete all previous steps for run on the Windows 10 need to do the following:
50
+
1. Download curl from https://curl.se/windows/
51
+
2. Inside archive find "bin" directory
52
+
3. Rename libcurl-x64.def to libcurl.def
53
+
4. Rename libcurl-x64.dll to libcurl.dll
54
+
5. Copy all files from "bin" directory to C:\Ruby30-x64\bin
42
55
43
56
To run tests, you need:
44
57
1. Create a .env file at the `tests` dir (or rename an existing .env.example file)
45
58
2. Enter your data from the developer account
46
-
* SECRET=< The secret key of your application >\
59
+
*`SECRET`\
47
60
settings => Apps and Keys =>
48
61
Apps and Integration Keys your app "ACTIONS" => Edit =>
49
62
Authentication => Secret Keys
50
-
* INTEGRATOR_KEY_JWT=< your Integration Key >\
63
+
*`INTEGRATOR_KEY_JWT`\
51
64
settings => Apps and Keys => Integration Key of your app
52
-
* TEMPLATE_ID=< your template id >\
53
-
templates => in MyTemplates list click by choosen template => template id
54
-
* USER_ID=< your User ID >\
65
+
*`TEMPLATE_ID`\
66
+
templates => in MyTemplates list click by chosen template or _create new one_ => template id
67
+
*`USER_ID`\
55
68
settings => Apps and Keys => User ID
56
69
57
70
3. Copy private key to `tests/docs/private.pem `\
58
71
Settings => "Apps and Keys"
59
72
in Apps and Integration Keys choose your application name => "ACTIONS" Edit => Service Integration => + GENERATE RSA
First time you ask for a JWT access token you might need to uncomment lines 19-21 in `tests/spec/unit_tests_using_jwt_spec.rb:19` and grant access to the API
62
80
63
-
5. Run tests: \
64
-
`cd tests`\
65
-
`rspec`
66
81
67
82
## Support
68
83
Log issues against this client through GitHub. We also have an [active developer community on Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
0 commit comments