steemconnect

in steem •  7 years ago 

!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){(function(n){"use strict";var o=r(1);"undefined"!=typeof window&&(window.steemconnect=o),"undefined"!=typeof n&&(n.steemconnect=o),t=e.exports=o}).call(t,function(){return this}())},function(e,t,r){"use strict";var n=r(2),o=r(4),i=r(9)("steemconnect"),s={baseURL:"https://steemconnect.com",app:"",callbackURL:""};s.init=function(e){e.baseURL&&s.setBaseURL(e.baseURL),e.app&&s.setApp(e.app),e.callbackURL&&s.setCallbackURL(e.callbackURL)},s.setBaseURL=function(e){s.baseURL=e},s.setApp=function(e){s.app=e},s.setCallbackURL=function(e){s.callbackURL=e},s.getLoginURL=function(e){return e?s.baseURL+"/authorize/@"+s.app+"?redirect_url="+e:s.baseURL+"/authorize/@"+s.app+"?redirect_ url="+s.callbackURL},s.send=function(e,t,r){var a=s.baseURL+"/api/@"+s.app+"/"+e,c=n(a+"?"+o.stringify(t),{credentials:"include"}).then(function(e){if(i("GET "+e.status+" "+a),e.status>=400){var t=new Error("Steem Connect API call failed with "+e.status);throw t.res=e,t}return e.json()});return r?c.then(function(e){r(null,e)},function(e){r(e)}):c},s.isAuthenticated=function(e){return s.send("verify",{},e)},s.vote=function(e,t,r,n,o){var i={voter:e,author:t,permlink:r,weight:n};return s.send("vote",i,o)},s.follow=function(e,t,r){var n={follower:e,following:t};return s.send("follow",n,r)},s.unfollow=function(e,t,r){var n={unfollower:e,unfollowing:t};return s.send("unfollow",n,r)},s.ignore=function(e,t,r){var n={follower:e,following:t};return s.send("ignore",n,r)},s.reblog=function(e,t,r,n){var o={account:e,author:t,permlink:r};return s.send("reblog",o,n)},s.comment=function(e,t,r,n,o,i,a,c){var u={parentAuthor:e,parentPermlink:t,author:r,permlink:n,title:o,body:i,jsonMetadata:a};return s.send("comment",u,c)},s.deleteComment=function(e,t,r){var n={author:e,permlink:t};return s.send("deleteComment",n,r)},s.post=function(e,t,r,n,o,i){var a={author:e,permlink:t,title:r,body:n,jsonMetadata:o};return s.send("post",a,i)},s.escrowTransfer=function(e,t,r,n,o,i,a,c,u,l){var f={from:e,to:t,amount:r,memo:n,escrow_id:o,agent:i,fee:a,json_ meta:c,expiration:u};return s.send("escrowTransfer",f,l)},s.escrowDispute=function(e,t,r,n,o){var i={from:e,to:t,escrow_id:r,who:n};return s.send("escrowDispute",i,o)},s.escrowRelease=function(e,t,r,n,o,i){var a={from:e,to:t,escrow_ id:r,who:n,amount:o};return s.send("escrowRelease",a,i)},s.customJson=function(e,t,r,n,o){var i={id:r,json:n,requiredPostingAuths:t,requiredAuths:e};return s.send("customJson",i,o)},t=e.exports=s},function(e,t,r){r(3),e.exports=self.fetch.bind(self)},function(e,t){!function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9-#$%&'*+.^`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function r(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return b.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function s(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function a(e){var t=new FileReader,r=s(t);return t.readAsArrayBuffer(e),r}function c(e){var t=new FileReader,r=s(t);return t.readAsText(e),r}function u(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}function l(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this. initBody=function(e){if(this.bodyInit=e,e)if("string"==typeof e)this. bodyText=e;else if(b.blob&&Blob.prototype.isPrototypeOf(e))this.bodyBlob=e;else if(b.formData&&FormData.prototype.isPrototypeOf(e))this. bodyFormData=e;else if(b.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this.bodyText=e.toString();else if(b.arrayBuffer&&b.blob&&v(e))this. bodyArrayBuffer=l(e.buffer),this._bodyInit=new

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @rudaruda! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post
You made your First Vote
You made your First Comment
You got a First Vote
Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

ok

.

@steemcleaners - I don't even know...

Haha! 🤣

Calling all @steemcleaners

Congratulations @rudaruda! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!