Dag 12

In GoedGebeld moest een functie worden ontwikkeld om automatisch een Slack-bericht te versturen naar een medewerker binnen het bedrijf. Hiervoor heb ik de Slack API gebruikt, specifiek de chat.postMessage-functie.

Om dit te integreren in Laravel, heeft Nick een Slack API-token ingesteld in de .env-file, zodat er verbinding gemaakt kon worden met de Slack-workspace. Vervolgens heb ik een Slack-service bestand aangemaakt die verantwoordelijk is voor het versturen van berichten, inclusief het instellen van de juiste HTTP-headers. Om de gebruikersnaam van de afzender correct weer te geven in plaats van de standaard GoedGebeld-gebruikersnaam, heb ik gebruikgemaakt van de ‘<@>’-notatie in de code, waarmee het Slack-ID van de persoon wordt toegevoegd. Dit zorgt ervoor dat de persoon naar wie het Slack bericht word gestuurd de gebruikersnaam ziet waar het bericht van komt en is deze ook klikbaar.

Releated Posts

Dag 11

Vandaag heb ik verder gewerkt aan de functie van GoedGebeld om contactpersonen en bedrijven samen te voegen. De…

ByByadminSep 2, 2024
7 Comments Text
  • jilibetagent says:
    Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.
    Jilibetagent is doing its thang! Got hooked up with a sweet deal through them. Easy to navigate and they were super helpful. Definitely recommended if you’re looking for something reliable. Check this out: jilibetagent
  • panalokocasino says:
    Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.
    Been playing at Panalokocasino lately. It’s got a good vibe and a decent selection of games. Might be your new favorite spot! You can find it here: panalokocasino
  • jiliasia 888 login says:
    Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.
    Just a heads-up, getting into jiliasia 888 login was straightforward. Once I was in, the experience was pretty smooth. Nice games and responsive. If you’re new, it’s pretty easy to get started: jiliasia 888 login
  • au21bit says:
    Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.
    Managing my bankroll here is so straightforward and I love how fast the deposits hit my balance. The game roster covers everything from classic slots to modern video poker. I especially appreciate the clear terms on bonuses which takes away any guesswork. Will keep playing and supporting this team. au21bit
  • vnvb88win says:
    Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.
    I have been searching for a trustworthy gaming site and I am so glad I landed here. The payment methods are flexible and the support team responds within minutes no matter what timezone I am in. It is refreshing to play somewhere that prioritizes smooth transactions and fair gameplay. Will definitely stay loyal to this platform. vnvb88win
  • texas88slotlogin says:
    Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.
    I used to struggle with platforms that felt overly complicated, but this one makes everything so simple and enjoyable. The slot selection is top notch and I always find something new to keep my sessions lively. What stands out the most is how approachable the entire experience is, from the quick account setup to the friendly guidance they offer. It is rare to find a site that balances excitement with such a relaxed atmosphere. texas88slotlogin
  • jljl33asialogin says:
    Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.
    I have been looking for a safe and steady login point and this place quietly delivers every single time. The games are fair, the rounds are engaging, and I never feel rushed. It is just a pleasant experience from start to finish. I will keep returning whenever I need a reliable gaming spot. jljl33asialogin
  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    Dag 12 – Mark Stage