Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

sharinpix-move album node package #1

wants to merge 3 commits into from

Conversation

kherinwork
Copy link
Contributor

No description provided.

else
console.error "Error: Could not find file #{ filePath }."
else
console.error 'Error: Wrong number of arguments.'

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

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
Copy link
Member

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants