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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions