Skip to main content
3 of 3
deleted 226 characters in body
Brock Adams
  • 13k
  • 5
  • 39
  • 64

Using API with sites like JSFiddle and CodePen?

I am currently working on a prototype for the flair provided by Stack Exchange and can't seem to get the API to work with CodePen. It continuously returns the following error on the SE.init call:

Uncaught channelUrl must be under the current domain.

But I really just want to fetch from routes like /users/{ids}/associated Is there a way to successfully implement the API on sites like JSFiddle or Codepen?

I don't need any special authentication.

Note I tried the "Javascript SDK":

SE.init({
    clientId: 16131,
    key: 's29XM)Eqn2x3YxhjLgFwBQ((',
    channelUrl: 'codepen.io/PerpetualJ/blank', // Issue is here, this isn't a valid path.
    complete: function (data) { fetch(); }
});
function fetch() {
    var info = SE.users('9893154');
}

which gave the above error.

Is it possible to use the API with sites like JSFiddle or Codepen for rapid web debugging and demonstrations?

Taco
  • 163
  • 7