poetapp / wordpress-plugin

Automatically post to the Po.et Network from WordPress
https://wordpress.org/plugins/po-et/
GNU General Public License v2.0
49 stars 34 forks source link

Update default API URL #43

Closed geoffturk closed 5 years ago

geoffturk commented 5 years ago

Change the API URL from "https://api.frost.po.et/works" to "https://api.poetnetwork.net/works"

geoffturk commented 5 years ago

@markparolisi This one is necessary to work with the new version of the API we are just launching this week.

markparolisi commented 5 years ago

OK, I'll update these and also make them filterable so one could set code like...

if($is_dev_env){
  add_filter('poet_api_url', function(){
    return $sandbox_api_url;
  })
}

Same concept with the filters for explorer endpoint

lautarodragan commented 5 years ago

Extracted part of this into https://github.com/poetapp/wordpress-plugin/issues/45