-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sharinpix-move album node package #1
base: master
Are you sure you want to change the base?
Conversation
bin/moveInterface.coffee
Outdated
else | ||
console.error "Error: Could not find file #{ filePath }." | ||
else | ||
console.error 'Error: Wrong number of arguments.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
donner le nombre de paramètres attendus + exemple de commande
moveAlbum.coffee
Outdated
albums = [] | ||
|
||
csv | ||
.fromStream stream, headers: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decaler d'un cran
moveAlbum.coffee
Outdated
body= | ||
'album': | ||
'public_id': destination_id | ||
superagent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kherinwork plutot que d'utiliser superagent ici, tu peux simplement faire sharinpix.getInstance.post()
Si tu veux encore faire mieux tu peux faire une PR qui ajoute la fonctione renameAlbum ou moveAlbum sur le répo de SharinPix.
moveAlbum.coffee
Outdated
albums = [] | ||
|
||
csv | ||
.fromStream stream, headers: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je pense que on ne veux pas les headers, pour faire simple et être sur de ne pas rater d'import.
No description provided.