Skip to content

Commit

Permalink
Merge branch 'main' of github.com:online-photo-submission/bulk-action…
Browse files Browse the repository at this point in the history
…-importer

* 'main' of github.com:online-photo-submission/bulk-action-importer:
  Update upload-csv.bat
  Update importer.bat
  Update config.bat

# Conflicts:
#	importer.bat
  • Loading branch information
Jonathan Hoffman committed May 16, 2024
2 parents fbd5456 + 393e1b1 commit d993af5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ set "PERSISTENT_ACCESS_TOKEN=insert-token-here"

REM it's best to specify the column names in the first line of the CSV
REM if you use the 'COLUMN_NAMES' option, also add the appropriate '--form' argument in the curl command in 'upload-csv.sh'
REM set "COLUMN_NAMES=email,identifier"
REM set "COLUMN_NAMES=email,identifier"
2 changes: 1 addition & 1 deletion importer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ for %%F in ("%IMPORT_DIRECTORY%\*.csv") do (
echo ========================================================================================================
)

curl --location %API_URL%/person/me/logout --header "X-Auth-Token: %SESSION_TOKEN%" --header "Accept: application/json" --header "Content-Type: application/json" --data "{""authenticationToken"": ""%SESSION_TOKEN%""}"
curl --location %API_URL%/person/me/logout --header "X-Auth-Token: %SESSION_TOKEN%" --header "Accept: application/json" --header "Content-Type: application/json" --data "{""authenticationToken"": ""%SESSION_TOKEN%""}"
2 changes: 1 addition & 1 deletion upload-csv.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ set COLUMN_NAMES=%4
REM to set the column names add the following to the curl command
REM --form "columnNames=\"%COLUMN_NAMES%\""

curl -i --location "%API_URL%/bulk-action" --header "X-Auth-Token: %SESSION_TOKEN%" --form "csv=@\"%FILE%\"" --form "actionDefault=\"%ACTION_DEFAULT%\""
curl -i --location "%API_URL%/bulk-action" --header "X-Auth-Token: %SESSION_TOKEN%" --form "csv=@\"%FILE%\"" --form "actionDefault=\"%ACTION_DEFAULT%\""

0 comments on commit d993af5

Please sign in to comment.