-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
46 lines (46 loc) · 7.23 KB
/
package.json
File metadata and controls
46 lines (46 loc) · 7.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"name": "subspace_product_api",
"version": "1.0.12",
"description": "_IntroductionThe_Subspace_API_is_based_on_REST_has_resource_oriented_URLs_returns_JSON_encoded_responses_and_returns_standard_HTTP_response_codes_The_base_URL_for_the_API_is__https__api_subspace_com__Naming_Convention_Version_name_currently_in_use_is_v1___Example_https__api_subspace_com_v1_Authentication_API_TokensSubspace_authenticates_your_API_requests_using_JWT_Bearer_tokens__To_use_any_Subspace_API_you_must_pass_a_Bearer_token_with_each_request__If_you_do_not_include_your_Bearer_token_when_making_an_API_request_or_use_one_that_is_incorrect_or_disabled_Subspace_returns_an_error_Bearer_tokens_are_granted_by_requesting_one__as_noted_below_and_presenting_your_publishable__client_id_and_secret__client_secret_tokens____Subspace_provides_two_types_of_API_tokens_publishable__client_id_and_secret__client_secret___These_are_available_in_the_Subspace_console____Publishable_API_tokens__client_id_are_meant_solely_to_identify_your_account_with_Subspace_they_arent_secret__They_can_be_published_in_places_like_your_website_JavaScript_code_or_in_an_iPhone_or_Android_app____Secret_API_tokens__client_secret_should_be_kept_confidential_and_only_stored_on_your_own_servers__Your_accounts_secret_API_token_will_allow_you_to_acquire_a_valid_JWT_token_authorized_to_perform_any_API_request_to_Subspace__Getting_a_JWT_Bearer_TokenSubspace_uses_auth0_for_JWT_token_management___You_can_acquire_a_JWT_token_by_utilizing_https__id_subspace_com_and_following_the_instructions_in_the_curl_example_below__Protecting_Your_API_Tokens___JWT_tokens_have_a_expiration_time_of_24_hours___Once_expired_you_will_have_to_use_your_Subspace_private_API_and_public_token_to_request_a_new_one____The_Subspace_private_token_can_be_rotated_from_within_the_Subspace_console____Keep_your_secret_token_safe__Your_secret_token_can_make_any_API_call_on_behalf_of_your_account_including_changes_that_may_impact_billing_such_as_enabling_pay_as_you_go_charges__Do_not_store_your_secret_token_in_your_version_control_system__Do_not_use_your_secret_token_outside_your_web_server_such_as_a_browser_mobile_app_or_distributed_file____You_may_use_the_Subspace_console_to_acquire_an_API_token____You_may_use_the_Subspace_console_to_disable_pay_as_you_go__This_may_prevent_unexpected_charges_due_to_unauthorized_or_abnormal_usage____Do_not_embed_API_keys_directly_in_code__Instead_of_directly_embedding_API_keys_in_your_applications_code_put_them_in_environment_variables_or_within_include_files_that_are_stored_separately_from_the_bulk_of_your_codeoutside_the_source_repository_of_your_application__Then_if_you_share_your_code_the_API_keys_will_not_be_included_in_the_shared_files____Do_not_store_API_tokens_inside_your_applications_source_control__If_you_store_API_tokens_in_files_keep_the_files_outside_your_applications_source_control_system__This_is_particularly_important_if_you_use_a_public_source_code_management_system_such_as_GitHub____Limit_access_with_restricted_tokens__The_Subspace_console_will_allow_you_to_specify_the_IP_addresses_or_referrer_URLs_associated_with_each_token_reducing_the_impact_of_a_compromised_API_token____Use_independent_API_tokens_for_different_apps__This_limits_the_scope_of_each_token__If_an_API_token_is_compromised_you_can_rotate_the_impacted_token_without_impacting_other_API_tokens__Error_CodesSubspace_uses_HTTP_response_codes_to_indicate_the_success_or_failure_of_an_API_request__General_HTML_status_codes___2xx_Success_____4xx_Errors_based_on_information_provided_in_the_request____5xx_Errors_on_Subspace_servers____SecurityWe_provide_a_valid_signed_certificate_for_our_API_methods__Be_sure_your_connection_library_supports_HTTPS_with_the_SNI_extension__REST_How_ToMaking_your_first_REST_API_call_is_easy_and_can_be_done_from_your_browser___You_will_need___Your_secret_token_and_public_client_token_both_found_in_the_Console____The_URL_for_the_type_of_data_you_would_like_to_request_First_acquire_a_JWT_Bearer_Token___Command_line_example________curl___request_POST_____________url_https__id_subspace_com_oauth_token_____________header_content_type_application_json_____________data__client_id_YOURCLIENTID_client_secret_YOURCLIENTSECRET_audience_https__api_subspace_com__grant_type_client_credentials_REST_calls_are_made_up_of___Base_url_Example_https__api_subspace_com___Version_Example_v1___The_API_Endpoint_and_any_parameters_accelerator_acc_NDA3MUI5QzUtOTY4MC00Nz_where_acc_NDA3MUI5QzUtOTY4MC00Nz_is_a_valid_accelerator_ID___Accelerator_ids_are_always_of_the_format_acc_NDA3MUI5QzUtOTY4MC00Nz_with_a_acc__prefix_followed_by_22_characters____Token_header_All_REST_requests_require_a_valid_JWT_Bearer_token_which_should_be_added_as_an_Authorization_header_to_the_request____________Authorization_Bearer_YOUR_TOKEN_HERE___Authorization_header_exampleIf_your_API_token_was_my_api_token_you_would_add_______Authorization_Bearer_my_api_token_______to_the_header__Command_line_examplesTo_list_your_current_open_packet_accelerators_using_the_token_my_api_token____curl__H_Authorization_Bearer_my_api_token_https__api_subspace_com_v1_accelerator____Alternately_to_get_the_details_of_a_specific_accelerator_whose_id_is_abcd_ef01_2345____curl__H_Authorization_Bearer_my_api_token_https__api_subspace_com_v1_accelerator_abcd_ef01_2345_API_VersioningSubspace_will_release_new_versions_when_we_make_backwards_incompatible_changes_to_the_API__We_will_give_advance_notice_before_releasing_a_new_version_or_retiring_an_old_version_Backwards_compatible_changes___Adding_new_response_attributes___Adding_new_endpoints___Adding_new_methods_to_an_existing_endpoint___Adding_new_query_string_parameters___Adding_new_path_parameters___Adding_new_webhook_events___Adding_new_streaming_endpoints___Changing_the_order_of_existing_response_attributes__Versions_are_added_to_the_base_url_for_example___https__api_subspace_com_v1Current_Version_is_v1_https__api_subspace_com_v1",
"license": "CC BY-NC-ND 4.0",
"main": "dist/index.js",
"scripts": {
"build": "babel src -d dist",
"prepare": "npm run build",
"test": "mocha --require @babel/register --recursive"
},
"browser": {
"fs": false
},
"dependencies": {
"@babel/cli": "^7.0.0",
"superagent": "^5.3.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-decorators": "^7.0.0",
"@babel/plugin-proposal-do-expressions": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-bind": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"expect.js": "^0.3.1",
"mocha": "^8.0.1",
"sinon": "^7.2.0"
},
"files": [
"dist"
]
}