Returns details about the passed notification ID.

NULL is returned if no notification is found for the ID.

@param string $notificationId

@return array|null
962042
public function getNotification( $notificationId ){

        $path = sprintf( self::PATH_NOTIFICATION_LOOKUP, $notificationId );

        return $this->httpGet( $path );

    }
1078516
private function getFolderById(int $folderId): \stdClass
    {
        $folder = Craft::$app->assets->getFolderById($folderId);
        if ($folder) {
            $volume = $folder->getVolume();
            return  (object) [
                'id' => $folderId,
                'handle' => $volume->handle
            ];
        }
        return null;
    }
326675
def get_notification(self, notification_id, **params):
        """"""
        response = self._get('v2', 'notifications', notification_id, params=params)
        return self._make_api_object(response, Notification)
906549
public function notify(NotifyRequest $notification): Response
    {
        if ($this->appID !== null) {
            $notification->setApplicationIdentification($this->appID);
        }

        $response = $this->sendRequest($notification);
        return $response;

    }
250629
public function markThreadAsRead(int $id): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/notifications/threads/:id', (string)$id),
            Request::METHOD_PATCH);
    }
1038422
public function getNotificationDetails()
    {
        $receiver = $this->getReceiver();

        $notificationDetails = array(
            'portfolio' => array(
                'id' => $this->portfolio->getId(),
                'title' => $this->portfolio->getTitle(),
                'slug' => $this->portfolio->getSlug(),
            ),
            'viewer' => array(
                'id' => $receiver->getId(),
                'publicUrl' => $receiver->getPublicUrl(),
                'lastName' => $receiver->getLastName(),
                'firstName' => $receiver->getFirstName(),
            ),
        );

        return $notificationDetails;
    }
349068
public function getGroup ($groupID)
    {
        $groups = $this->getAllGroups();
        
        foreach ($groups as $group) {
            if ($group->getID() == $groupID) {
                return $group;
            }
        }
        
        return null;
    }
1083734
public List<ValueNotification> getByElementID(String elementID) {
        if(elementID == null)
            return null;
        List<ValueNotification> found = new ArrayList<ValueNotification>();
        for (Notification n: NotificationManager.notifications){
            try{
                if (((ValueNotification)n).getElementID().equals(elementID)) {
                    logger.fine("...found a match for getByElementID query. With elementID: "+elementID);
                    found.add((ValueNotification) n);
                }
            } catch (ClassCastException e) {
                // Nothing to do. Its normal when comparts value an interaction notifications.  
            }
        }
        if(found.size()>0)        
            return found;
        return null;
    }
993144
protected function getCache($documentId)
    {
        if (isset($this->cache[$documentId])) {
            return $this->cache[$documentId];
        }

        return null;
    }
1225987
public function read($ID)
    {
        $member = Member::currentUser();
        if (!$member) {
            return false;
        }

        if ($ID) {
            $notification = InternalNotification::get()
                ->filter([
                    'ID' => $ID,
                    'ToID' => $member->ID,
                    'IsRead' => false
                ])->first();
            if ($notification) {
                $notification->IsRead = true;
                $notification->write();
                return true;
            }
        }
        return false;
    }
501938
protected function getData($notifiable, Notification $notification)
    {
        if (method_exists($notification, 'toBroadcast')) {
            return $notification->toBroadcast($notifiable);
        }

        if (method_exists($notification, 'toArray')) {
            return $notification->toArray($notifiable);
        }

        throw new RuntimeException('Notification is missing toArray method.');
    }
935343
public function delete($notificationId)
    {
        return $this->sendRequest(
            self::METHOD_DELETE,
            str_replace(':notification_id', $notificationId, self::$endPoints['delete'])
        );
    }
1318475
public function get($messageId)
    {
        if (!isset($this->messages[$messageId])) {
            return null;
        }

        return new OutboxMessage($messageId, $this->messages[$messageId]->getTransportOperations());
    }
38899
public function getNotificationById(int $notificationId): Notification
    {
        $notification = $this->mapper->extractNotificationsFromRows(
            $this->gateway->getNotificationById($notificationId)
        );

        if (count($notification) < 1) {
            throw new NotFoundException('Notification', $notificationId);
        }

        return reset($notification);
    }
84652
public function clear_notification( $queue_id, Notification $notification ) {

		$notifications = $this->get_notifications( $queue_id );

		$notification = array_search( $notification, $notifications );

		if ( false === $notification ) {
			return false;
		}

		unset( $notifications[ $notification ] );

		return $this->store_notifications( $queue_id, $notifications );
	}
1015307
public function getReason($contactId)
    {
        $contactcdNode = $this->getContactcd($contactId);
        $node = $this->getFirst('contact:reason', $contactcdNode);

        return $node === null ? null : $node->nodeValue;
    }
576883
public function getListId(string $listId = null): ?string
    {
        return ($listId == null) ? $this->listId : $listId;
    }