Skip to content

Using this in general #190

Description

@jhonJerb

Does this lib is supporting specific env like pivotal/bluemix or any other CF env ?

1 .I mean I just need const endpoint = "https://api.cf.mycompany.com"; and it should work?
2. In cf the app is bounded to a spaces so how should i works with your example

CloudController.getInfo().then( (result) => {
UsersUAA.setEndPoint(result.authorization_endpoint);
return UsersUAA.login(username, password);
}).then( (result) => {
Apps.setToken(result);
return Apps.getApps();
}).then( (result) => {
console.log(result);
}).catch( (reason) => {
console.error("Error: " + reason);
});

where does the space is handled here ? since when I connect from the cli it ask me to which space I want to connect...

Btw, I try to run it against our API (until I receive your input ...) and its not working and Im not getting no error message in the console, what it can be ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions