@windingtree/org.id-resolver
Advanced tools
Comparing version 2.0.7 to 2.1.0
{ | ||
"name": "@windingtree/org.id-resolver", | ||
"version": "2.0.7", | ||
"version": "2.1.0", | ||
"description": "ORGiD DID resolver", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -34,3 +34,8 @@ [](https://travis-ci.org/windingtree/org.id-resolver) | ||
const Web3 = require('web3'); | ||
const { OrgIdResolver, httpFetchMethod } = require('@windingtree/org.id-resolver'); | ||
const { | ||
OrgIdResolver, | ||
httpFetchMethod, | ||
linkedInFetchMethod, | ||
twitterFetchMethod | ||
} = require('@windingtree/org.id-resolver'); | ||
@@ -42,2 +47,8 @@ const web3 = new Web3('<WEB3_PROVIDER>'); // HTTP(s) or WS(s) | ||
}); | ||
resolver.registerSocialFetchMethod(linkedInFetchMethod, { | ||
key: '<LINKEDIN_API_KEY>' | ||
}); | ||
resolver.registerSocialFetchMethod(twitterFetchMethod, { | ||
key: '<TWITTER_API_KEY>' | ||
}); | ||
resolver.registerFetchMethod(httpFetchMethod); | ||
@@ -44,0 +55,0 @@ |
Sorry, the diff of this file is too big to display
159316
13
310
213
7