mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-21 17:26:55 +01:00
Update other pages affected by new testnet
This commit is contained in:
parent
548dfebbad
commit
050834fa11
@ -21,30 +21,22 @@ pip install -U bigchaindb-driver
|
||||
</dependency>
|
||||
```
|
||||
|
||||
Then, include that as a module and connect to any BigchainDB node. You can create your own `app_id` and `app_key` on [BigchainDB Testnet](https://testnet.bigchaindb.com).
|
||||
Then, include that as a module and connect to any BigchainDB node.
|
||||
|
||||
```js
|
||||
const BigchainDB = require('bigchaindb-driver')
|
||||
|
||||
const API_PATH = 'https://test.bigchaindb.com/api/v1/'
|
||||
const conn = new BigchainDB.Connection(API_PATH, {
|
||||
app_id: 'Get one from testnet.bigchaindb.com',
|
||||
app_key: 'Get one from testnet.bigchaindb.com'
|
||||
})
|
||||
const API_PATH = 'https://test1.testnet2.com/api/v1/'
|
||||
const conn = new BigchainDB.Connection(API_PATH)
|
||||
```
|
||||
|
||||
```python
|
||||
from bigchaindb_driver import BigchainDB
|
||||
|
||||
conn = BigchainDB(
|
||||
'https://test.bigchaindb.com',
|
||||
headers={'app_id': 'Get one from testnet.bigchaindb.com',
|
||||
'app_key': 'Get one from testnet.bigchaindb.com'})
|
||||
conn = BigchainDB('https://test1.testnet2.com')
|
||||
```
|
||||
|
||||
```java
|
||||
BigchainDbConfigBuilder
|
||||
.baseUrl("https://test.bigchaindb.com/")
|
||||
.addToken("app_id", "Get one from testnet.bigchaindb.com")
|
||||
.addToken("app_key","Get one from testnet.bigchaindb.com").setup();
|
||||
.baseUrl("https://test1.testnet2.com/").setup();
|
||||
```
|
||||
|
@ -72,12 +72,7 @@ const Orm = require('bigchaindb-orm')
|
||||
|
||||
class DID extends Orm {
|
||||
constructor(entity) {
|
||||
super(
|
||||
API_PATH, {
|
||||
app_id: 'Get one from testnet.bigchaindb.com',
|
||||
app_key: 'Get one from testnet.bigchaindb.com'
|
||||
}
|
||||
)
|
||||
super(API_PATH)
|
||||
this.entity = entity
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user