1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-06-17 18:13:19 +02:00

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> </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 ```js
const BigchainDB = require('bigchaindb-driver') const BigchainDB = require('bigchaindb-driver')
const API_PATH = 'https://test.bigchaindb.com/api/v1/' const API_PATH = 'https://test1.testnet2.com/api/v1/'
const conn = new BigchainDB.Connection(API_PATH, { const conn = new BigchainDB.Connection(API_PATH)
app_id: 'Get one from testnet.bigchaindb.com',
app_key: 'Get one from testnet.bigchaindb.com'
})
``` ```
```python ```python
from bigchaindb_driver import BigchainDB from bigchaindb_driver import BigchainDB
conn = BigchainDB( conn = BigchainDB('https://test1.testnet2.com')
'https://test.bigchaindb.com',
headers={'app_id': 'Get one from testnet.bigchaindb.com',
'app_key': 'Get one from testnet.bigchaindb.com'})
``` ```
```java ```java
BigchainDbConfigBuilder BigchainDbConfigBuilder
.baseUrl("https://test.bigchaindb.com/") .baseUrl("https://test1.testnet2.com/").setup();
.addToken("app_id", "Get one from testnet.bigchaindb.com")
.addToken("app_key","Get one from testnet.bigchaindb.com").setup();
``` ```

View File

@ -72,12 +72,7 @@ const Orm = require('bigchaindb-orm')
class DID extends Orm { class DID extends Orm {
constructor(entity) { constructor(entity) {
super( super(API_PATH)
API_PATH, {
app_id: 'Get one from testnet.bigchaindb.com',
app_key: 'Get one from testnet.bigchaindb.com'
}
)
this.entity = entity this.entity = entity
} }
} }