Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. source:
  2. plugin: url
  3. data_fetcher_plugin: http
  4. data_parser_plugin: json
  5. authentication:
  6. plugin: basic
  7. username: ''
  8. password: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
  9. headers:
  10. Accept: 'application/json; charset=utf-8'
  11. Content-Type: 'application/json'
  12. urls: https://www.example.com/jsonfeed
  13.  
  14. public function getRequestHeaders() {
  15. return !empty($this->headers) ? $this->headers : [];
  16. }
  17.  
  18. public function getRequestHeaders() {
  19. return !empty($this->configuration['headers']) ? $this->configuration['headers'] : [];
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement