alicoding / node-transifex

Transifex API client for nodejs
MIT License
15 stars 9 forks source link

Newbie question #1

Closed fxbenard closed 10 years ago

fxbenard commented 10 years ago

When you say Initialize the app with the init() how do you do it, thanks

alicoding commented 10 years ago

Hi @fxbenard,

The initialize function or init() is used to store/cache the credential if you want to use this in your app which will require some authentication from Transifex.

You can simply do

    project_slug: "<projectName>",
    credential: "user:pass" // In the same format
});

Where as <projectName> refer to your project name from Transifex

Check out this URL

https://www.transifex.com/projects/p/webmaker/

the last part after p is the project name.

And of course the user:pass is just your credential that you use to login in your Transifex app.

Let me know if you need help on this. :)

fxbenard commented 10 years ago

Thanks for this fast answer, i'll try to figured it out but it's far from my domain of competence.

if i understand well:

project_slug: "", // Question: Should i keep the <>? credential: "user:mypasstogetin" // In the same format

Before i create an app some time will have pass by. But i keep following your project ;) A WordPress plugin will be a dream ;)

alicoding commented 10 years ago

@fxbenard no you don't have to keep that <> it is just the replacement strings :)