Update other pages affected by new testnet

This commit is contained in:
Troy McConaghy 2018-09-24 16:31:16 +02:00
parent 548dfebbad
commit 050834fa11
2 changed files with 6 additions and 19 deletions

View File

@ -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();
```

View File

@ -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
}
}