WIP refactor preview pdf

This commit is contained in:
Ken Tsang
2018-02-28 14:18:42 +00:00
parent 2b10060e49
commit 6279169b18
3 changed files with 13 additions and 12 deletions

View File

@@ -79,11 +79,10 @@ class NotificationApiClient(NotifyAdminAPIClient):
notification['status'] = 'accepted'
return notifications
def get_notification_letter_preview(self, service_id, template_id, notification_id, file_type, page=None):
def get_notification_letter_preview(self, service_id, notification_id, file_type, page=None):
get_url = '/service/{}/template/{}/pdf-preview/{}/{}{}'.format(
get_url = '/service/{}/template/preview/{}/{}{}'.format(
service_id,
template_id,
notification_id,
file_type,
'?page={}'.format(page) if page else ''